Skip to content

Instantly share code, notes, and snippets.

@ralphbean
Created March 19, 2012 22:07
Show Gist options
  • Select an option

  • Save ralphbean/2127551 to your computer and use it in GitHub Desktop.

Select an option

Save ralphbean/2127551 to your computer and use it in GitHub Desktop.
import time
import datetime
some_datetime = datetime.datetime.now()
print time.mktime(some_datetime.timetuple())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment