[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Represent NTP's origin time
From: |
tomas |
Subject: |
Re: Represent NTP's origin time |
Date: |
Sat, 17 Apr 2021 16:09:51 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sat, Apr 17, 2021 at 03:44:28PM +0200, Achim Gratz wrote:
> Achim Gratz writes:
> > Stefan Monnier writes:
> >> 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?
> >
> > Get off your 32bit system already?
>
> There have been responses that called this answer "unkind" or "snarky".
Only mildly so, from my side.
> It wasn't meant to be, I apologise for the impression that was likely
> created by being too brief [...]
I do understand the issues, but see below.
I replied (or so I thought) "in kind". A better reply would have
been: Emacs supports 32 bit platforms. Unless ending 32 bit
support is in the near-future, it'd be a good idea to think about
how to support a wider (possibly 64 bit) time_t even on a 32 bit
Emacs.
The *BSDs and Linux (beyond kernel 5.6ish) do support 64 bit time_t
in their 32 bit variants: perhaps this is an orientation.
Cheers
- t
signature.asc
Description: Digital signature
Re: Represent NTP's origin time, Achim Gratz, 2021/04/15
- Re: Represent NTP's origin time, tomas, 2021/04/16
- Re: Represent NTP's origin time, Richard Stallman, 2021/04/16
- Re: Represent NTP's origin time, Achim Gratz, 2021/04/17
- Re: Represent NTP's origin time,
tomas <=
- Re: Represent NTP's origin time, Stefan Monnier, 2021/04/17
- Re: Represent NTP's origin time, Achim Gratz, 2021/04/17
- Re: Represent NTP's origin time, tomas, 2021/04/17
- Re: Represent NTP's origin time, Achim Gratz, 2021/04/17
- [OFFTOPIC] Re: Represent NTP's origin time, Stefan Monnier, 2021/04/17
- Re: [OFFTOPIC] Re: Represent NTP's origin time, tomas, 2021/04/17
- Re: [OFFTOPIC] Re: Represent NTP's origin time, Stefan Monnier, 2021/04/17