From unknown Fri Aug 15 15:55:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11866 <11866@debbugs.gnu.org> To: bug#11866 <11866@debbugs.gnu.org> Subject: Status: date doesn't accept 61-sec. minutes Reply-To: bug#11866 <11866@debbugs.gnu.org> Date: Fri, 15 Aug 2025 22:55:55 +0000 retitle 11866 date doesn't accept 61-sec. minutes reassign 11866 coreutils submitter 11866 Juergen Heine severity 11866 normal tag 11866 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 05 11:54:00 2012 Received: (at submit) by debbugs.gnu.org; 5 Jul 2012 15:54:00 +0000 Received: from localhost ([127.0.0.1]:50659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmoNS-0001Q3-4M for submit@debbugs.gnu.org; Thu, 05 Jul 2012 11:54:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53527) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmhJ6-0006Qv-Go for submit@debbugs.gnu.org; Thu, 05 Jul 2012 04:21:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmhEI-00086y-SU for submit@debbugs.gnu.org; Thu, 05 Jul 2012 04:16:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:44575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmhEI-00086h-Ot for submit@debbugs.gnu.org; Thu, 05 Jul 2012 04:16:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmhEC-0000WN-Ex for bug-coreutils@gnu.org; Thu, 05 Jul 2012 04:16:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmhE5-00081f-Uu for bug-coreutils@gnu.org; Thu, 05 Jul 2012 04:15:55 -0400 Received: from mail.qvs-deutschland.de ([217.14.120.208]:60672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmhE5-00081Y-LY for bug-coreutils@gnu.org; Thu, 05 Jul 2012 04:15:49 -0400 Received: from [10.0.0.41] (a89-183-26-78.net-htp.de [89.183.26.78]) by mail.qvs-deutschland.de (Postfix) with ESMTPSA id 1D9F628AED for ; Thu, 5 Jul 2012 10:15:45 +0200 (CEST) Message-ID: <4FF54D2D.8000709@qvs-deutschland.de> Date: Thu, 05 Jul 2012 10:15:41 +0200 From: Juergen Heine User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: command date don't accept 61 sec. minutes X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 05 Jul 2012 11:53:56 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) According to The International Earth Rotation Service (IERS) we have "Leap Seconds" included in our UTC time. Please refer http://hpiers.obspm.fr/iers/bul/bulc/bulletinc.dat . ~ snip ~ A positive leap second will be introduced at the end of June 2012. The sequence of dates of the UTC second markers will be: 2012 June 30, 23h 59m 59s 2012 June 30, 23h 59m 60s 2012 July 1, 0h 0m 0s ~snap~ The command 'date' doesn't calculate it. Test: $ date +%s -d "2012-06-30 23:59:60" date: invalid date `2012-06-30 23:59:60' Tested version: date (GNU coreutils) 8.5 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David MacKenzie. -- Juergen 'sysdef' Heine, gnu-date@sysdef.de From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 05 12:18:36 2012 Received: (at 11866) by debbugs.gnu.org; 5 Jul 2012 16:18:37 +0000 Received: from localhost ([127.0.0.1]:50737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmolI-00020s-Js for submit@debbugs.gnu.org; Thu, 05 Jul 2012 12:18:36 -0400 Received: from mail.qvs-deutschland.de ([217.14.120.208]:45554) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmolG-00020l-Fi for 11866@debbugs.gnu.org; Thu, 05 Jul 2012 12:18:35 -0400 Received: from [10.0.0.41] (a89-183-26-78.net-htp.de [89.183.26.78]) by mail.qvs-deutschland.de (Postfix) with ESMTPSA id 251F228AB8 for <11866@debbugs.gnu.org>; Thu, 5 Jul 2012 18:13:38 +0200 (CEST) Message-ID: <4FF5BD33.3060309@qvs-deutschland.de> Date: Thu, 05 Jul 2012 18:13:39 +0200 From: Juergen Heine User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 MIME-Version: 1.0 To: 11866@debbugs.gnu.org Subject: Re: bug#11866: Acknowledgement (command date don't accept 61 sec. minutes) References: <4FF54D2D.8000709@qvs-deutschland.de> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11866 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Hello, can you please do me a favor and correct the typo in the title? don't -> doesn't Thank you for the GNU system! --=20 Mit freundlichen Gr=C3=BC=C3=9Fen / Sincerely i. A. Juergen Heine juergen.heine@qvs-deutschland.de QVS GmbH Lange Laube 18 D-30159 Hannover http://www.qvs-deutschland.de Tel: 0511 790 201 60 Fax: 0511 790 201 65 FreeCall: Tel: 0800 24 400 24 Fax: 0800 24 400 25 Amtsgericht Hannover HRB 203111 Steuernr. 25/203/58348 Ust-IdNr. DE260351579 Gesch=C3=A4ftsf=C3=BChrer: Prof. Dr. Josef Kraus, Stefan Klotz From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 05 12:44:25 2012 Received: (at 11866) by debbugs.gnu.org; 5 Jul 2012 16:44:25 +0000 Received: from localhost ([127.0.0.1]:50818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmpAG-0003Tn-R3 for submit@debbugs.gnu.org; Thu, 05 Jul 2012 12:44:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43977) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmpAD-0003Tc-Dt; Thu, 05 Jul 2012 12:44:23 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q65GdRxc027685 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Jul 2012 12:39:27 -0400 Received: from [10.3.113.17] ([10.3.113.17]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q65GdQbe023264; Thu, 5 Jul 2012 12:39:26 -0400 Message-ID: <4FF5C33E.4020902@redhat.com> Date: Thu, 05 Jul 2012 10:39:26 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Juergen Heine Subject: Re: bug#11866: command date don't accept 61 sec. minutes References: <4FF54D2D.8000709@qvs-deutschland.de> In-Reply-To: <4FF54D2D.8000709@qvs-deutschland.de> X-Enigmail-Version: 1.4.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig2190CE25E6C1936B64D28220" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11866 Cc: 11866@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2190CE25E6C1936B64D28220 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable retitle 11866 date doesn't accept 61-sec. minutes tag moreinfo thanks On 07/05/2012 02:15 AM, Juergen Heine wrote: > A positive leap second will be introduced at the end of June 2012. > The sequence of dates of the UTC second markers will be: >=20 > 2012 June 30, 23h 59m 59s > 2012 June 30, 23h 59m 60s > 2012 July 1, 0h 0m 0s > ~snap~ >=20 > The command 'date' doesn't calculate it. The command 'date' doesn't have any control over whether your system is configured to honor or ignore leap seconds. Some systems are intentionally configured to ignore leap seconds (for a famous example, read http://googleblog.blogspot.com/2011/09/time-technology-and-leaping-second= s.html - _most_ of google's computers are programmed to ignore leap seconds, by instead providing a change in just the few computers that control their internal NTP synchronization to smear the leap second over the course of a day). If your system has leap-second accounting turned on, then 'date' can properly use it. If your system has leap-second accounting turned off, then 'date' properly fails because your system is configured to reject that date. But there is nothing coreutils can do about it, other than obey the settings particular to your system. You didn't mention what system you are on - if we knew that information, we might be able to help you figure out whether there is an easy way to configure your system to use leap seconds (but be careful what you wish for - there was a bug in recent Linux kernels that manifested itself as a 100% load inside an futex on machines configured to honor leap seconds; all the more reason why the leap smear technique is so appealing to organizations that can tightly control how time is synchronized within their own network). Therefore, I am tagging this bug as 'moreinfo', but we will probably close it out as 'notabug' in a few more days. On 07/05/2012 10:13 AM, Juergen Heine wrote:> Hello, > > can you please do me a favor and correct the typo in the title? > > > don't -> doesn't Done. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig2190CE25E6C1936B64D28220 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJP9cM+AAoJEKeha0olJ0NqWJkH/2bY2+I/6OzwFrr/e3uqzuud lfjdwwo+Nvr9dMQKnKXRStSfVbCiv9l9p+5eKBN6s3UHoMUmyoGi+RznA5g73hHw 8j1qAfVR+EDaW0Chu3yAPSOwoB3cveZapIKNH37ce0lMJPw35MUewgMguGiXwE0K c7x5QSBYwGQgfSFSvyRUZjuhDoPAiMjc7QXhGT9REf9ATq33zKi7xNai44FJiYob 2Ld25P56Q0T1ddDXoJCBKqMg/5UuVdyQ5bmYZhSzEu89Xl5qff9XWige4Ezp1Uy7 jUrZp2OiHX9SxXKTxB7Q+qAxIgDFggMMxX87bkphHpo7s9NsY7/Qr//1TKnsjio= =XFUD -----END PGP SIGNATURE----- --------------enig2190CE25E6C1936B64D28220-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 05 13:10:30 2012 Received: (at control) by debbugs.gnu.org; 5 Jul 2012 17:10:31 +0000 Received: from localhost ([127.0.0.1]:50859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmpZW-0004v1-OB for submit@debbugs.gnu.org; Thu, 05 Jul 2012 13:10:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24719) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmpZT-0004ut-QY for control@debbugs.gnu.org; Thu, 05 Jul 2012 13:10:29 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q65H5XeC031041 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 5 Jul 2012 13:05:33 -0400 Received: from [10.3.113.17] ([10.3.113.17]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q65H5Wfd009967 for ; Thu, 5 Jul 2012 13:05:33 -0400 Message-ID: <4FF5C95C.7050001@redhat.com> Date: Thu, 05 Jul 2012 11:05:32 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: Re: Processed (with 1 errors): Re: bug#11866: command date don't accept 61 sec. minutes References: <4FF5C33E.4020902@redhat.com> <4FF5C882.6020205@redhat.com> In-Reply-To: <4FF5C882.6020205@redhat.com> X-Enigmail-Version: 1.4.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig631CCE69094B20BFB248DD16" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig631CCE69094B20BFB248DD16 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 11866 moreinfo thanks >=20 --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig631CCE69094B20BFB248DD16 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJP9clcAAoJEKeha0olJ0NqBpIIAJ2MUbitR1+VWRH3x4OKSYWf 2KGW2wy3Hv+lhxzH75rDerTI5j5F+J2p3/hnd7qON4SF62QYbCS6bRimTS89bRJx /sUSipXBXnBOQ6KEvatL3AvG2cE23R9bRdVCQHyQpnhBEkJeeoAZKi35xm+dzBXA k/Ef38JBqVyKJMrC8ytVYyEampD4ZSw+y8re1+EHpBpg1huHhsl5g04id2kZF3w3 cZIBRCbuR3c2x7usN6LVY0YpI6FVRarE+QojZ7TyZ+p5utnIm3HuwAtRvsDms1CN DczQQxiFkfkAbZ/hXWqQS+Ge9JiNw21ifye+m37CrfKWaRK7jvdvfe6SWhtB6Q4= =LTv8 -----END PGP SIGNATURE----- --------------enig631CCE69094B20BFB248DD16-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 05 16:10:17 2012 Received: (at 11866) by debbugs.gnu.org; 5 Jul 2012 20:10:17 +0000 Received: from localhost ([127.0.0.1]:50998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmsNU-00028Q-M1 for submit@debbugs.gnu.org; Thu, 05 Jul 2012 16:10:17 -0400 Received: from mail.qvs-deutschland.de ([217.14.120.208]:49141) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmsNR-00028H-7y for 11866@debbugs.gnu.org; Thu, 05 Jul 2012 16:10:15 -0400 Received: from [10.0.0.41] (a89-183-26-78.net-htp.de [89.183.26.78]) by mail.qvs-deutschland.de (Postfix) with ESMTPSA id C740028AB8; Thu, 5 Jul 2012 22:05:15 +0200 (CEST) Message-ID: <4FF5F37D.7040404@qvs-deutschland.de> Date: Thu, 05 Jul 2012 22:05:17 +0200 From: Juergen Heine User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 MIME-Version: 1.0 To: Eric Blake Subject: Re: bug#11866: command date doesn't accept 61 sec. minutes References: <4FF54D2D.8000709@qvs-deutschland.de> <4FF5C33E.4020902@redhat.com> In-Reply-To: <4FF5C33E.4020902@redhat.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11866 Cc: 11866@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 05/07/12 18:39, Eric Blake wrote: > retitle 11866 date doesn't accept 61-sec. minutes thank you for the correction. > The command 'date' doesn't have any control over whether your system is > configured to honor or ignore leap seconds. Some systems are > intentionally configured to ignore leap seconds (for a famous example, > read > http://googleblog.blogspot.com/2011/09/time-technology-and-leaping-seco= nds.html thank you very much for leading me to that very interesting solution to solve the technical problems it can cause. > - _most_ of google's computers are programmed to ignore leap seconds, b= y > instead providing a change in just the few computers that control their > internal NTP synchronization to smear the leap second over the course o= f > a day). > If your system has leap-second accounting turned on, then 'date' can > properly use it. If your system has leap-second accounting turned off, > then 'date' properly fails because your system is configured to reject > that date. But there is nothing coreutils can do about it, other than > obey the settings particular to your system. > You didn't mention what system you are on Debian GNU/Linux 6.0 stable/Squeeze Linux Kernel: 2.6.32 Arch: amd64 / x86_64 > if we knew that information, > we might be able to help you figure out whether there is an easy way to > configure your system to use leap seconds (but be careful what you wish > for - there was a bug in recent Linux kernels that manifested itself as > a 100% load inside an futex on machines configured to honor leap > seconds; all the more reason why the leap smear technique is so > appealing to organizations that can tightly control how time is > synchronized within their own network). Therefore, I am tagging this > bug as 'moreinfo', but we will probably close it out as 'notabug' in a > few more days. I think re-configuring the system will not correct the drift between the two timelines. It will just set/correct the UTC clock in time. So the situation looks like: ---- Leap Seconds and UNIX timestamps * Unix timestamp time line ignores the leap seconds because there is no reason it should. There is no relation to earth rotation or any calendar system. * There is no timestamp for leap seconds. The leap seconds are increasing the speed of the UTC time line to correct the faster earth rotation. * Leap seconds are (in contrast to calendar leap days) ignored by unix timestamp time line. * The definition "seconds since EPOCHE, 1970-01-01 00:00:00" is incorrect when looking at your UTC time because there is a not calculated drift of about 30 seconds. * 'date' is correct and wrong at the very same time with "2012-06-30 23:59:60 doesn't exist" because the system is UNIX-time based and the leap second is missing in the timestamp timeline but the time exists in the UTC stream we are asking for. ---- If i'm correct, can we add this information to the manual for people who don't understand the simple line "leap seconds are getting ignored"? And by a chance a "please RTFM, abstract 'Leap Seconds'" instead of "date is incorrect"? Greetings from Germany! --=20 Mit freundlichen Gr=FC=DFen / Sincerely i. A. Juergen Heine juergen.heine@qvs-deutschland.de QVS GmbH Lange Laube 18 D-30159 Hannover http://www.qvs-deutschland.de Tel: 0511 790 201 60 Fax: 0511 790 201 65 FreeCall: Tel: 0800 24 400 24 Fax: 0800 24 400 25 Amtsgericht Hannover HRB 203111 Steuernr. 25/203/58348 Ust-IdNr. DE260351579 Gesch=E4ftsf=FChrer: Prof. Dr. Josef Kraus, Stefan Klotz From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 05 19:21:50 2012 Received: (at 11866-done) by debbugs.gnu.org; 5 Jul 2012 23:21:50 +0000 Received: from localhost ([127.0.0.1]:51138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmvMs-0000SJ-02 for submit@debbugs.gnu.org; Thu, 05 Jul 2012 19:21:50 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:50783) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SmvMo-0000SA-0p for 11866-done@debbugs.gnu.org; Thu, 05 Jul 2012 19:21:48 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 49873A6000F; Thu, 5 Jul 2012 16:16:50 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Gs4YLO0j9f-p; Thu, 5 Jul 2012 16:16:49 -0700 (PDT) Received: from [192.168.1.4] (pool-108-23-119-2.lsanca.fios.verizon.net [108.23.119.2]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 29145A60001; Thu, 5 Jul 2012 16:16:49 -0700 (PDT) Message-ID: <4FF62061.4020104@cs.ucla.edu> Date: Thu, 05 Jul 2012 16:16:49 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Juergen Heine Subject: Re: bug#11866: command date doesn't accept 61 sec. minutes References: <4FF54D2D.8000709@qvs-deutschland.de> <4FF5C33E.4020902@redhat.com> <4FF5F37D.7040404@qvs-deutschland.de> In-Reply-To: <4FF5F37D.7040404@qvs-deutschland.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11866-done Cc: Eric Blake , 11866-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) On 07/05/2012 01:05 PM, Juergen Heine wrote: > If i'm correct, can we add this information to the manual for > people who don't understand the simple line "leap seconds are > getting ignored"? Sure, I added the following and am marking this as done. >From bfda96e0ac5552bb1784f5e1dc311918ce077d50 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 5 Jul 2012 16:11:49 -0700 Subject: [PATCH 2/2] doc: document leap seconds better * doc/coreutils.texi (touch invocation, Time conversion specifiers) (Options for date, Examples of date): Index "leap seconds" and improve their documentation a bit. --- doc/coreutils.texi | 39 ++++++++++++++++++++++++++++++++++++++- 1 files changed, 38 insertions(+), 1 deletions(-) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 3c7f4e5..751a920 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -10493,13 +10493,15 @@ If @var{file} is a symbolic link, the reference timestamp is taken from the target of the symlink, unless @option{-h} was also in effect. @item -t [[@var{cc}]@var{yy}]@var{mmddhhmm}[.@var{ss}] +@cindex leap seconds Use the argument (optional four-digit or two-digit years, months, days, hours, minutes, optional seconds) instead of the current time. If the year is specified with only two digits, then @var{cc} is 20 for years in the range 0 @dots{} 68, and 19 for years in 69 @dots{} 99. If no digits of the year are specified, the argument is interpreted as a date in the current year. -Note that @var{ss} may be @samp{60}, to accommodate leap seconds. +On the atypical systems that support leap seconds, @var{ss} may be +@samp{60}. @end table @@ -14243,11 +14245,13 @@ locale's 12-hour clock time (e.g., @samp{11:11:04 PM}) @cindex epoch, seconds since @cindex seconds since the epoch @cindex beginning of time +@cindex leap seconds seconds since the epoch, i.e., since 1970-01-01 00:00:00 UTC@. Leap seconds are not counted unless leap second support is available. @xref{%s-examples}, for examples. This is a @acronym{GNU} extension. @item %S +@cindex leap seconds second (@samp{00}@dots{}@samp{60}). This may be @samp{60} if leap seconds are supported. @item %T @@ -14650,12 +14654,15 @@ See also @ref{Setting the time}. @cindex UTC @cindex Greenwich Mean Time @cindex GMT +@cindex leap seconds @vindex TZ Use Coordinated Universal Time (@acronym{UTC}) by operating as if the @env{TZ} environment variable were set to the string @samp{UTC0}. Coordinated Universal Time is often called ``Greenwich Mean Time'' (@sc{gmt}) for historical reasons. +Typically, systems ignore leap seconds and thus implement an +approximation to UTC rather than true UTC. @end table @@ -14806,6 +14813,36 @@ date -u -d '1970-01-01 946684800 seconds' +"%Y-%m-%d %T %z" 2000-01-01 00:00:00 +0000 @end smallexample +@item +@cindex leap seconds +Typically the seconds count omits leap seconds, but some systems are +exceptions. Because leap seconds are not predictable, the mapping +between the seconds count and a future timestamp is not reliable on +the atypical systems that include leap seconds in their counts. + +Here is how the two kinds of systems handle the leap second at +2012-06-30 23:59:60 UTC: + +@example +# Typical systems ignore leap seconds: +date --date='2012-06-30 23:59:59 +0000' +%s +1341100799 +date --date='2012-06-30 23:59:60 +0000' +%s +date: invalid date '2012-06-30 23:59:60 +0000' +date --date='2012-07-01 00:00:00 +0000' +%s +1341100800 +@end example + +@example +# Atypical systems count leap seconds: +date --date='2012-06-30 23:59:59 +0000' +%s +1341100823 +date --date='2012-06-30 23:59:60 +0000' +%s +1341100824 +date --date='2012-07-01 00:00:00 +0000' +%s +1341100825 +@end example + @end itemize -- 1.7.6.5 From unknown Fri Aug 15 15:55:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 03 Aug 2012 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator