Skip to content

Instantly share code, notes, and snippets.

@dlsym
Created February 15, 2012 20:51
Show Gist options
  • Save dlsym/1838917 to your computer and use it in GitHub Desktop.
Save dlsym/1838917 to your computer and use it in GitHub Desktop.
var start = moment("2012-02-15 20:00:00 GMT");
var stop = moment();
console.log( moment( stop.diff( start )).format( 'HH:mm:ss') );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment