How can I convert a datetime object to milliseconds since epoch (unix time) in Python? - Stack Overf
I have a Python datetime object that I want to convert to unix time, or seconds/milliseconds since the 1970 epoch. How do I do this? ... timegm() works only with utc time. It doesn't use tm_isdst therefore you could use utcnow.timetuple() instead of utcno...