Open johnjohndoe opened 9 years ago
Thanks for the notice! Please note that I'm not able to test code against Windows. But maybe someone could send a pull request.
@ptrv Do you know how to fix this so it works for Windows too?
@johnjohndoe What kind of format is %s
? It's not in the list here https://docs.python.org/2/library/time.html#time.strftime
Probably seconds in unix time? @marians Can you tell the truth?
A bit of googling: http://stackoverflow.com/a/11743262
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.
The usage of strftime("%s")
is platform dependent and seems to not work on windows.
@ptrv Thank you for the research.
I am trying to run the library on Windows 7 having Python 2.7.8 installed. It basically works. When I use the
-d
parameter to specify a date the following error occurs:This post might be helpful.