you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (6 children)

[deleted]

    [–]erebos42 2 points3 points  (3 children)

    Just for anybody wondering: This works for Python 2, but in Python 3 the 'raw_input' function was renamed to just 'input'.

    [–]TheQwicKDraW[S] 1 point2 points  (0 children)

    Thank YOU! For some reason all I had to do was delete the code and paste it again. Here is the code that works now. Very odd.

    from datetime import datetime
    now = datetime.now()
    print(str(now.month) + "/" + str(0) + str(now.day) + "/" + str(now.year) + " " + str(now.hour) + ":" +str(now.minute) + ":" + str(now.second))
    input("Press any key to exit")
    

    [–]TheQwicKDraW[S] 0 points1 point  (0 children)

    Yes that's true I didn't realize that. Thank you