curl is a text-based utility and library for transferring data identified by their URLs. It is now year-2038 safe even on 32-bit systems. Daniel Stenberg, the orginal hacker of curl, has overseen a year-2038 fix for 32-bit systems. Without specific modifications, 32-bit systems cannot handle dates beyond 03:14:07 UTC on 19 January 2038. After that date, the time counter flips over and starts over again at zero, which would be the beginning of the UNIX epoch known as 00:00:00 UTC on 1 January 1970. Given the pervasiveness of 32-bit embedded systems and their long service lives, this is a serious problem and good (essential) to have fixed decades in advance. The OpenBSD project was the first major software project to take steps to avoid potential disaster from 32-bit time and awareness has since started to spread to other key software project such as curl.
(Score: 2) by darkfeline on Friday February 02 2018, @11:23PM (3 children)
That's like saying, don't hard code the value of pi, what if it changes?
The Unix Epoch is CONSTANT, otherwise timestamps fail to be, you know, unique.
Join the SDF Public Access UNIX System today!
(Score: 2) by TheRaven on Monday February 05 2018, @11:34AM (2 children)
Who cares? The epoc is an arbitrary point in time that lets you use a counter to identify other points in time. Times stored in a filesystem may not use the UNIX epoc, they may use an arbitrary point, as long as they also store that epoc time. Anything sent on the wire is defined by the protocol, not by your OS notion of time. If you're embedding UNIX epoc-relative numbers in your data files then you're either using 64-bit values in which case when you do the local-system-epoc-to-UNIX-epoc conversion you can perform the extension, or you're using 32-bit formats because you don't expect your files to be around after 2038 and if they are then you're screwed anyway.
sudo mod me up
(Score: 2) by darkfeline on Monday February 05 2018, @06:02PM (1 child)
And how are you going to store the epoch time, standardize an epoch epoch time, and store the epoch time as the number of seconds since the epoch epoch? Congratulations, you've just invented a roundabout way of using 64-bit time.
Join the SDF Public Access UNIX System today!
(Score: 2) by TheRaven on Tuesday February 06 2018, @10:40AM
sudo mod me up