Skip to content

Instantly share code, notes, and snippets.

@teofiloisrael
Created September 1, 2013 23:19
Show Gist options
  • Save teofiloisrael/6407960 to your computer and use it in GitHub Desktop.
Save teofiloisrael/6407960 to your computer and use it in GitHub Desktop.
//Milisegundos a días, horas, minutos y segundos en javascript
var x = difference / 1000
seconds = x % 60
x /= 60
minutes = x % 60
x /= 60
hours = x % 24
x /= 24
days = x;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment