Skip to content

Instantly share code, notes, and snippets.

@johl
Created October 23, 2009 10:53
Show Gist options
  • Save johl/216808 to your computer and use it in GitHub Desktop.
Save johl/216808 to your computer and use it in GitHub Desktop.
current_datetime = datetime.datetime.now(ustimezones.pacific()) # What time is it in California?
delta = str(current_datetime.replace(tzinfo=None) - date_time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment