public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/114279] utc_clock does not support leap seconds
Date: Fri, 08 Mar 2024 07:59:06 +0000	[thread overview]
Message-ID: <bug-114279-4-CcREQC22mw@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-114279-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114279

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It certainly does take leap seconds into account, as demonstrated by the output
example below the text you quoted, which is reproduced in the testsuite:

https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libstdc%2B%2B-v3/testsuite/std/time/clock/utc/io.cc;h=55c53dc4057fe90b8a0f7192cc38ffe313f5afd4;hb=HEAD

And also:

https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libstdc%2B%2B-v3/testsuite/std/time/clock/utc/leap_second_info.cc;h=2fabda494234a48dc2920e291f5a92a8fe1d02fa;hb=HEAD

This seems to be just a bug in the from_stream overload, not utc_clock.

  reply	other threads:[~2024-03-08  7:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-08  6:51 [Bug libstdc++/114279] New: " gnaggnoyil at gmail dot com
2024-03-08  7:59 ` redi at gcc dot gnu.org [this message]
2024-03-08 11:21 ` [Bug libstdc++/114279] " redi at gcc dot gnu.org
2024-03-09  0:29 ` cvs-commit at gcc dot gnu.org
2024-03-09  0:31 ` redi at gcc dot gnu.org

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-114279-4-CcREQC22mw@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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).