Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Python calculates incorrect date

$
0
0
Using the python expression time.strftime("%d/%m%Y"), my date is calculated as 12:00 am. If I drop off the day and month variables, i.e. time.strftime("%Y"), I get the date claculated as July 5, 1905. Any ideas why this might be happeneing and how I can restore the calculation to the current date.

Viewing all articles
Browse latest Browse all 2485

Trending Articles