Datetime Strftime Does Not Output Correct Timestamp
The following: >>> from dateutil.parser import parse >>> parse('2013-07-02 00:00:00 -0000') datetime.datetime(2013, 7, 2, 0, 0, tzinfo=tzutc()) shows that the t
Solution 1:
See this question: Convert python datetime to epoch with strftime
Python doesn't actually support %s as an argument to strftime (if you check at http://docs.python.org/library/datetime.html#strftime-and-strptime-behavior it's not in the list), the only reason it's working is because Python is passing the information to your system's strftime, which uses your local timezone.
Post a Comment for "Datetime Strftime Does Not Output Correct Timestamp"