Comment

Comment by ariebovenberg

I wouldn't consider 'not handling leap seconds' as a pitfall. If you need to account for leap seconds, you're probably not going to use a general-purpose datetime library.

Unix time ignores leap seconds, so does RFC 5545 (iCal), and most modern libraries (Chrono, Temporal, NodaTime).

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton