reazen / relude-eon

A datetime library for the ages in ReasonML
MIT License
12 stars 4 forks source link

Leap seconds #4

Open mlms13 opened 5 years ago

mlms13 commented 5 years ago

I don't have the need or motivation to implement this at the moment, but here is maybe a strategy:

It's debatable whether this is worth it. The lookup table will need to be updated each time a leap second is added, which doesn't happen on predictable intervals, and often doesn't happen with much advance notice. JS dates don't know or care about leap seconds, which makes the interop story a bit unclear.

What's more, most people don't care about to-the-second accuracy with datetimes, and industries that do (e.g. astronomy, high-frequency trading) usually have their own standards for dealing with times and aren't overly concerned with UTC.