davidcalhoun / gps-time.js

Small utility to convert times between GPS epoch (midnight January 6, 1980) and Unix epoch (midnight January 1, 1970), taking into account leap seconds.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requires rewrite: negative leap second coming?

davidcalhoun opened this issue · comments

Negative leap second coming? https://www.telegraph.co.uk/news/2021/01/04/earth-spinning-faster-now-time-past-half-century/

This will require different logic for subtracting rather than adding seconds.

May be a good time to rewrite the library with ESM modules in mind instead of the UMD wrapper.