Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leap seconds/impact to libuv ? #261

Closed
mhdawson opened this issue Mar 11, 2015 · 1 comment
Closed

Leap seconds/impact to libuv ? #261

mhdawson opened this issue Mar 11, 2015 · 1 comment

Comments

@mhdawson
Copy link
Contributor

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 what effect this could have on a Node application. In may cases Node depends on libuv for time related functions so we'd like to ask if this has been considered and if its likely/possible that the insertion of the leap second will affect the correct operation of the calls made through the libuv API.

@bnoordhuis
Copy link
Member

Libuv doesn't use gettimeofday() if that is what you're asking, it uses a monotonic clock (e.g. CLOCK_MONOTONIC). Timed waits on condition variables use a monotonic clock or relative timeouts.

@saghul saghul closed this as completed Mar 12, 2015
gagern pushed a commit to gagern/libuv that referenced this issue Apr 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants