Skip to content

Instantly share code, notes, and snippets.

@josephsu
Created December 13, 2012 05:18
Show Gist options
  • Save josephsu/4274217 to your computer and use it in GitHub Desktop.
Save josephsu/4274217 to your computer and use it in GitHub Desktop.
import calendar
import datetime
def get_utc_timestamp():
return calendar.timegm(datetime.datetime.utcnow().utctimetuple())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment