emacs-devel
[Top][All Lists]
Advanced

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

Represent NTP's origin time


From: Stefan Monnier
Subject: Represent NTP's origin time
Date: Thu, 15 Apr 2021 00:00:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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?


        Stefan




reply via email to

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