[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Represent NTP's origin time
From: |
Ulrich Mueller |
Subject: |
Re: Represent NTP's origin time |
Date: |
Thu, 15 Apr 2021 10:27:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
>>>>> On Thu, 15 Apr 2021, Stefan Monnier wrote:
> NTP represents time stamps by counting seconds from January 1 1900, but
> my Emacs doesn't seem to be able to represent this:
> (encode-time (parse-time-string "1902-01-01T00:00-00:00"))
> => (-32745 59520)
> (encode-time (parse-time-string "1900-01-01T00:00-00:00"))
> => (error "Specified time is not representable")
> Do we have some "standard" workaround?
Overflow in the underlying mktime(3) or mktime_z(3)? Are there still
systems around where time_t has only 32 bits?
Re: Represent NTP's origin time, Achim Gratz, 2021/04/15