From: John Cowan <cowan@ccil.org>
To: 22034@debbugs.gnu.org, Mark H Weaver <mhw@netris.org>, zefram@fysh.org
Cc: 22034-done@debbugs.gnu.org
Subject: bug#22034: time-utc->date shows bogus zone-dependent leap second
Date: Sun, 21 Oct 2018 22:38:55 -0400 [thread overview]
Message-ID: <CAD2gp_R2AjkSY8fnB2UFHtKqT=63NSt66Fi3hQQ+1imE866WcQ@mail.gmail.com> (raw)
In-Reply-To: <87a7n847o5.fsf@netris.org>
[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]
On Sat, Oct 20, 2018 at 5:43 PM Mark H Weaver <mhw@netris.org> wrote:
If I understand correctly, 'time-utc->date' should never return a date
> object with 60 in the seconds field, because those extra seconds have no
> representation in time-utc. They only have representations in time-tai
> and time-monotonic.
>
As I understand it, this is incorrect. UTC days can contain either 86400
or 86401 seconds (or in principle a different number), depending on whether
the day has a leap second. It is *Posix* time, not UTC time, that contains
a fixed number of seconds per day, or more accurately that assigns a label
from 0 to 864399 to the seconds of a day, and can assign the same label to
more than one second (or in principle could assign one or more labels to no
second) on a leap-second day. Consequently, a broken-down time can indeed
return 60 in the seconds field, but only for a UTC clock, never for a Posix
clock.
This error is repeated in a number of your later messages, but I'll respond
only to this one.
--
John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org
Tautology is something that is tautological. --Francois-Rene Rideau
[-- Attachment #2: Type: text/html, Size: 1712 bytes --]
next prev parent reply other threads:[~2018-10-22 2:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-27 19:51 bug#22034: time-utc->date shows bogus zone-dependent leap second Zefram
2018-10-20 21:42 ` Mark H Weaver
2018-10-22 2:38 ` John Cowan [this message]
2018-10-22 6:12 ` Mark H Weaver
2018-10-25 22:21 ` John Cowan
2018-10-28 20:39 ` Mark H Weaver
2018-10-28 23:58 ` John Cowan
2018-10-29 7:16 ` Mark H Weaver
2018-10-29 22:33 ` Mark H Weaver
2018-10-30 0:23 ` John Cowan
2018-10-30 2:12 ` Mark H Weaver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAD2gp_R2AjkSY8fnB2UFHtKqT=63NSt66Fi3hQQ+1imE866WcQ@mail.gmail.com' \
--to=cowan@ccil.org \
--cc=22034-done@debbugs.gnu.org \
--cc=22034@debbugs.gnu.org \
--cc=mhw@netris.org \
--cc=zefram@fysh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).