2024-07-28 14:56 UTC
@skaverat@skaverat.net
Properly designed software use signed integers for Unix Epoch. Date and time prior to 1970-01-01T00:00:00Z are represented by negative int numbers.
But this is not meant to store birth dates anyway. Why would anyone do that?
Birth dates don't include hours and minutes, let alone seconds, and UTC…
And Unix epoch is not for storing dates. Since it's easy to convert human readable dates from and to it with default *NIX tools.
Replies (1)
-
@devnull@mamot.fr 2024-07-28 14:56
@skaverat@skaverat.net There's no point storing dates in this format. Especially when there's just date, not time. For storing, there is ISO-8601 format. Unix epoch timestamp is useful to make calculations on dates much more easier, and faster AND with enough precision (second) than date calculations on human readable format. No extra code, no libraries, no extra-anything to handle months with 31 vs 30 vs 29 vs 28 as well all the different human readable formats, and all the crap… So much less error-prone