Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Leap seconds #9382

Closed
mhdawson opened this issue Mar 11, 2015 · 2 comments
Closed

Leap seconds #9382

mhdawson opened this issue Mar 11, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@mhdawson
Copy link
Member

In coordinated universal time (UTC) a day normally consists of 86400 seconds. However, every few years there is an extra second called a "leap second". The leap second is always added as the last second of the day, and always on December 31 or June 30. There will be a leap second on June 30 2015.

We've been asked about the possible effect on Node. In many cases Node depends on either libuv or V8 for time related functions.

Issue opened in libuv repository to ask question: libuv/libuv#261

Some hits searching on V8/leap second

https://esdiscuss.org/topic/leap-second-clarification
https://code.google.com/p/v8/issues/detail?id=1944
http://blog.synyx.de/2012/11/properly-calculating-time-differences-in-javascript/ - indicates ECMA-262 specification explicitly ignores leap seconds

This article discusses linux and leap seconds:
http://www.wired.com/2015/01/torvalds_leapsecond/

@mhdawson mhdawson added this to the v0.10 milestone Mar 13, 2015
@srl295
Copy link
Member

srl295 commented Apr 16, 2015

@srl295 srl295 added the timer label Apr 16, 2015
@srl295 srl295 self-assigned this Apr 16, 2015
@mhdawson
Copy link
Member Author

Going to close this now since FAQ has been added

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants