bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Old timestamps in the future?


From: Paul Smith
Subject: Re: Old timestamps in the future?
Date: Fri, 09 Dec 2022 10:22:10 -0500
User-agent: Evolution 3.46.1 (by Flathub.org)

On Fri, 2022-12-09 at 15:06 +0000, Edward Welbourne wrote:
> MS's time_t is indeed 64-bit; and MS's time_t-related POSIX functions
> don't support times before the start of 1970, i.e. negative time_t
> values, so it is eminently plausible MS's time_t is a 64-bit unsigned
> int.  (Those same functions also don't support times after something
> like year 3000, but that's another story.)  So it seems eminently
> likely that your touch has set the time-stamp to just a little bit
> "less than" 0.

Interestingly on GNU/Linux, in glibc, you can provide negative time_t
values [1] and correctly represent times earlier than the epoch. 
That's probably why it works on my system even though I'm at UTC-0500.


[1] https://www.gnu.org/software/libc/manual/html_node/Time-Types.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]