How can I convert a datetime object to milliseconds since epoch (unix time) in Python?
It appears to me that the simplest way to do this is
It appears to me that the simplest way to do this is
I think I have a simpler solution — set the initial date to the epoch and add UTC units. Say you have a UTC epoch var stored in seconds. How about 1234567890. To convert that to a proper date in the local time zone: d is now a date (in my time zone) set to … Read more