We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

python3 datetime strftime issue



  • Hi there,
    I have an issue with datetime and strftime in python3 on my omega.
    When I use the code in Python 2.7:

    import datetime

    d = datetime.datetime.now()
    print d.strftime('%Y')

    I get:
    2016

    When I do the same in Python3:

    import datetime

    d = datetime.datetime.now()

    print(d.strftime('%Y'))

    I get an empty line as a response.

    Did anybody observe this issue? Can anybody give me a hint or some help on that?



  • I just tried it and I have the same issue. It is really weird. I think you will have to create the string yourself instead of using "strftime"


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.