Skip to content

Instantly share code, notes, and snippets.

@bussiere
Created August 13, 2010 13:28
Show Gist options
  • Save bussiere/522882 to your computer and use it in GitHub Desktop.
Save bussiere/522882 to your computer and use it in GitHub Desktop.
#Return The Internet Time by Swatch
from time import strftime
def internet_time() :
return (int(strftime("%H:%M:%S")[0:2]) + (int(strftime("%H:%M:%S")[3:5]) / 60.0)) / 24.0 * 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment