Skip to content

Instantly share code, notes, and snippets.

@johnmurch
Created October 6, 2015 03:25
Show Gist options
  • Save johnmurch/d697ddb32765f0dd94a5 to your computer and use it in GitHub Desktop.
Save johnmurch/d697ddb32765f0dd94a5 to your computer and use it in GitHub Desktop.
Epoch Diff
var client = 1444099876.816*1000;
var server = 1444099883.941*1000;
var seconds = (new Date(server).getTime() - new Date(client).getTime())/1000;
console.log("SECONDS: "+ seconds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment