SyntaxFix
Write A Post
Hire A Developer
Questions
To get the Unix time (seconds since January 1, 1970):
>>> import datetime, time >>> t = datetime.datetime(2011, 10, 21, 0, 0) >>> time.mktime(t.timetuple()) 1319148000.0