I played with JavaScript dates, and I'm looking for an explanation regarding the last registered array. Why are the numbers 1352589000, 1352589395 different?
code
var examples = [ "Fri Jan 16 1970 10:43:09 GMT-0500 (EST)", 1352589395 ]; var text = [ new Date((examples[0])), new Date((examples[1])), ]; var unix = [ new Date((examples[0])).getTime(), new Date((examples[1])).getTime(), ]; console.log(examples); console.log(text); console.log(unix);
Output
[ 'Fri Jan 16 1970 10:43:09 GMT-0500 (EST)', 1352589395 ][ 'Fri Jan 16 1970 10:43:09 GMT-0500 (EST)' , 'Fri Jan 16 1970 10:43:09 GMT-0500 (EST)' ][ 1352589000, 1352589395 ]
source share