Skip to content

Instantly share code, notes, and snippets.

@rev22
Last active January 1, 2016 03:19
Show Gist options
  • Save rev22/8085260 to your computer and use it in GitHub Desktop.
Save rev22/8085260 to your computer and use it in GitHub Desktop.
Javascript code to get Swatch Internet time ("Unlicense"'d)
"@"+("00"+Math.floor((((x.getUTCHours()+1)%24*60+x.getUTCMinutes())*60+x.getUTCSeconds()+(x.getUTCMilliseconds()*0.001))/86.4)).slice(-3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment