Re: Accounting for leap seconds for "this time value"

2015-09-03 Thread Michael McGlothlin
Wouldn't the leap seconds be only formatting for display where as time stored in epochs is universal? If I'm on Mars the epochs value is the same whereas local time (on Mars) may have a totally different set of adjustments to keep the human readable time true to that planets rotation etc. 📱 Mi

Re: Accounting for leap seconds for "this time value"

2015-09-03 Thread Claude Pache
That means that `Date.now()/1000` is the [Unix time] (https://en.wikipedia.org/wiki/Unix_time ), which can't represent leap seconds. In particular, each minute is assumed to have exactly 60 seconds, and thus it is impossible to represent `1981-06-30 23:

Accounting for leap seconds for "this time value"

2015-09-03 Thread Karl Cheng
The current specification has this to say about the time value in dates: "Time is measured in ECMAScript in milliseconds since 01 January, 1970 UTC. > In time values leap seconds are ignored. It is assumed that there are > exactly 86,400,000 milliseconds per day." What I would like to seek clari