Skip to content

Instantly share code, notes, and snippets.

@sudeepdk
Created October 13, 2016 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sudeepdk/3d0ded3ca4093d8bea451cf1410cfa65 to your computer and use it in GitHub Desktop.
Save sudeepdk/3d0ded3ca4093d8bea451cf1410cfa65 to your computer and use it in GitHub Desktop.
convert epoch time to date()
var Things =
[1446380000000 ,
1446380000000 ,
1446480000000 ,
1446510000000 ,
1446630000000 ,
1446860000000 ,
1447030000000 ,
1447090000000 ,
1447590000000 ,
1447600000000 ,
1447630000000 ,
1447630000000 ,
1447630000000 ,
1447630000000 ,
1447630000000 ,
1447630000000 ,
1447680000000 ,
1447680000000 ,
1447840000000 ,
1447840000000 ,
1447840000000 ,
1447840000000 ,
1447890000000 ,
1447970000000 ,
1451070000000 ]
for (var i = Things.length - 1; i >= 0; i--) {
var date = new Date(Things[i])
console.log(date , Things[i]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment