Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Is there any financial system, regime, or product that depends upon leap seconds? I have never heard of any.

They’re certainly unusual.

> If so, it is safe to ignore them.

Really? Leap seconds have happened, and they could plausibly happen again. If so, during those leap seconds, events will occur. Do you need to record the time of those events?

> When storing date/time stamps, I prefer to persist into two separate fields: (a) date/time using UTC time zone and (b) original time zone offset, e.g., UTC+8.

That covers most bases for past events. It is inappropriate for many future events.

Hmm, maybe a good system library would have separate types for timestamps that were actually observed (or interpolated or otherwise computed after the fact, etc) and for times of events that may not have occurred at the time of computation.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: