This is how you convert a Python datetime object into an epoch second:
(datetime.datetime(2012,04,01,0,0) - datetime.datetime(1970,1,1)).total_seconds()
No, seriously, that’s how.
And that’s completely unacceptable. What the hell? How can I possibly have to subtract the beginning of epoch, get a different object entirely, and then call a method on that object in order to get by far the most portable timestamp representation in the world, from Python’s one-and-only standard library timestamp object? Guys, it’s not this klutzy in Java.