From unknown Sun Jun 22 08:08:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10182: Century bug in date utility? Resent-From: Krzysztof Kowalski Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 01 Dec 2011 17:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10182 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 10182@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.132275943724507 (code B ref -1); Thu, 01 Dec 2011 17:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Dec 2011 17:10:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWA9c-0006ND-UN for submit@debbugs.gnu.org; Thu, 01 Dec 2011 12:10:37 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RW8ej-0003oV-5B for submit@debbugs.gnu.org; Thu, 01 Dec 2011 10:34:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RW8eV-0000oK-Ir for submit@debbugs.gnu.org; Thu, 01 Dec 2011 10:34:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:39876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW8eV-0000oG-HL for submit@debbugs.gnu.org; Thu, 01 Dec 2011 10:34:23 -0500 Received: from eggs.gnu.org ([140.186.70.92]:59914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW8eP-0005zj-Ti for bug-coreutils@gnu.org; Thu, 01 Dec 2011 10:34:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RW8eK-0000mo-2o for bug-coreutils@gnu.org; Thu, 01 Dec 2011 10:34:17 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:44970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW8eJ-0000mh-P3 for bug-coreutils@gnu.org; Thu, 01 Dec 2011 10:34:12 -0500 Received: by bke17 with SMTP id 17so2951818bke.0 for ; Thu, 01 Dec 2011 07:34:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=u1ejJZmLIn2ofGqcyrx7UVhgpGIiwx04e7w9+SFlKLs=; b=H95sZ9jSBr1hhdhLdZ0fbnsC3TT/3pc0fNdxObidOx/TveQ55ciqYhlJWsAzfahloG nxWiWrI1DcEkIp66DOiHIx7oxuO0E/WC7nXq9RMk4w3XPCaEGNXZCPTQzL/cVa58b8Ca xbZ7RuPnRSiFYUrfxxCCmBbUwcIyjmxwf2ch4= Received: by 10.204.132.78 with SMTP id a14mr8146912bkt.15.1322753650951; Thu, 01 Dec 2011 07:34:10 -0800 (PST) Received: from [192.168.1.11] (nat4-240.ghnet.pl. [91.150.221.240]) by mx.google.com with ESMTPS id hw14sm12011351bkc.16.2011.12.01.07.34.10 (version=SSLv3 cipher=OTHER); Thu, 01 Dec 2011 07:34:10 -0800 (PST) Message-ID: <4ED79E71.10804@gmail.com> Date: Thu, 01 Dec 2011 16:34:09 +0100 From: Krzysztof Kowalski User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 References: <4ED79D11.5080200@gmail.com> In-Reply-To: <4ED79D11.5080200@gmail.com> X-Enigmail-Version: 1.3.3 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Thu, 01 Dec 2011 12:10:35 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -5.6 (-----) Hello, We have 2011, HOWEVER: korn% date +%C 20 korn% date Thu Dec 1 16:26:30 CET 2011 apc% apc% date +%C 20 apc% apc% date Thu Dec 1 16:26:51 2011 And many other call returns that we live in 20 century :) For a test I changed system time to 1997 and date utility returned 20 century as well :) -- best regards -- Kowalski Krzysztof From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 01 12:35:48 2011 Received: (at control) by debbugs.gnu.org; 1 Dec 2011 17:35:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWAXz-000719-If for submit@debbugs.gnu.org; Thu, 01 Dec 2011 12:35:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWAXw-00070s-1k; Thu, 01 Dec 2011 12:35:45 -0500 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 pB1HZXF2020876 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 1 Dec 2011 12:35:33 -0500 Received: from [10.3.113.136] (ovpn-113-136.phx2.redhat.com [10.3.113.136]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pB1HZWf6012288; Thu, 1 Dec 2011 12:35:32 -0500 Message-ID: <4ED7BAE3.9070305@redhat.com> Date: Thu, 01 Dec 2011 10:35:31 -0700 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: Krzysztof Kowalski Subject: Re: bug#10182: Century bug in date utility? References: <4ED79D11.5080200@gmail.com> <4ED79E71.10804@gmail.com> In-Reply-To: <4ED79E71.10804@gmail.com> X-Enigmail-Version: 1.3.3 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig5E9C7EBC5DA0188AE309DA6F" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Spam-Score: -10.3 (----------) X-Debbugs-Envelope-To: control Cc: 10182-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -10.3 (----------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5E9C7EBC5DA0188AE309DA6F Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable tag 10182 notabug thanks On 12/01/2011 08:34 AM, Krzysztof Kowalski wrote: > Hello, >=20 > We have 2011, >=20 > HOWEVER: >=20 > korn% date +%C > 20 > korn% date > Thu Dec 1 16:26:30 CET 2011 Yep. And this behavior is mandated by POSIX for strftime(), so it is not a bug. http://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html C Replaced by the year divided by 100 and truncated to an integer, as a decimal number. [ tm_year] That is, it is NOT the "century" in the vernacular (where years in the range [2001,2100] are collectively called the 21st century), but the first two digits of the year. The idea is that you combine %C%y to form = %Y. >=20 > For a test I changed system time to 1997 and date utility returned 20 > century as well :) No, %C in 1997 returned 19. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig5E9C7EBC5DA0188AE309DA6F 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.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJO17rjAAoJEKeha0olJ0NqvlIH/0DMeYCHP1xyAwodfNNNaKSa Nj84ISrWxTUwSPPp9PP/cn8jezjfxMyVqTDnTQll6ZPSIZYnSVwGY4ypGpklKZ8O 9GrX4T84KztDdWF5k5KojeUDPHbQnopTFYFo5soS8TZSmWwcCcKr50S2bMlvskxU Nkp5x2dc19Zsc7mHwiTI4MYAtux1SoTW6IoIIhrJQpewFDnHXKih9asAa2gDiMVg 50t6XNqxyubWimHBAHQEb0GayBnezHtFeNulMNFDvMYuQdpxpKeCYgR8RDSpfY5y 4wObvAPUNMstdeeZaLSjJuqIWr+ME3Dc8KOx1FG70Vxre0XuWhT0DKucKw3pBq4= =otXF -----END PGP SIGNATURE----- --------------enig5E9C7EBC5DA0188AE309DA6F-- From unknown Sun Jun 22 08:08:33 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Krzysztof Kowalski Subject: bug#10182: closed (Re: bug#10182: Century bug in date utility?) Message-ID: References: <4ED7BAE3.9070305@redhat.com> <4ED79E71.10804@gmail.com> X-Gnu-PR-Message: they-closed 10182 X-Gnu-PR-Package: coreutils X-Gnu-PR-Keywords: notabug Reply-To: 10182@debbugs.gnu.org Date: Thu, 01 Dec 2011 17:36:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1322760963-27011-1" This is a multi-part message in MIME format... ------------=_1322760963-27011-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #10182: Century bug in date utility? which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 10182@debbugs.gnu.org. --=20 10182: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10182 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1322760963-27011-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 10182-done) by debbugs.gnu.org; 1 Dec 2011 17:35:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWAXy-000712-8f for submit@debbugs.gnu.org; Thu, 01 Dec 2011 12:35:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWAXw-00070s-1k; Thu, 01 Dec 2011 12:35:45 -0500 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 pB1HZXF2020876 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 1 Dec 2011 12:35:33 -0500 Received: from [10.3.113.136] (ovpn-113-136.phx2.redhat.com [10.3.113.136]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id pB1HZWf6012288; Thu, 1 Dec 2011 12:35:32 -0500 Message-ID: <4ED7BAE3.9070305@redhat.com> Date: Thu, 01 Dec 2011 10:35:31 -0700 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: Krzysztof Kowalski Subject: Re: bug#10182: Century bug in date utility? References: <4ED79D11.5080200@gmail.com> <4ED79E71.10804@gmail.com> In-Reply-To: <4ED79E71.10804@gmail.com> X-Enigmail-Version: 1.3.3 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig5E9C7EBC5DA0188AE309DA6F" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Spam-Score: -10.3 (----------) X-Debbugs-Envelope-To: 10182-done Cc: 10182-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -10.3 (----------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5E9C7EBC5DA0188AE309DA6F Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable tag 10182 notabug thanks On 12/01/2011 08:34 AM, Krzysztof Kowalski wrote: > Hello, >=20 > We have 2011, >=20 > HOWEVER: >=20 > korn% date +%C > 20 > korn% date > Thu Dec 1 16:26:30 CET 2011 Yep. And this behavior is mandated by POSIX for strftime(), so it is not a bug. http://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html C Replaced by the year divided by 100 and truncated to an integer, as a decimal number. [ tm_year] That is, it is NOT the "century" in the vernacular (where years in the range [2001,2100] are collectively called the 21st century), but the first two digits of the year. The idea is that you combine %C%y to form = %Y. >=20 > For a test I changed system time to 1997 and date utility returned 20 > century as well :) No, %C in 1997 returned 19. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig5E9C7EBC5DA0188AE309DA6F 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.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJO17rjAAoJEKeha0olJ0NqvlIH/0DMeYCHP1xyAwodfNNNaKSa Nj84ISrWxTUwSPPp9PP/cn8jezjfxMyVqTDnTQll6ZPSIZYnSVwGY4ypGpklKZ8O 9GrX4T84KztDdWF5k5KojeUDPHbQnopTFYFo5soS8TZSmWwcCcKr50S2bMlvskxU Nkp5x2dc19Zsc7mHwiTI4MYAtux1SoTW6IoIIhrJQpewFDnHXKih9asAa2gDiMVg 50t6XNqxyubWimHBAHQEb0GayBnezHtFeNulMNFDvMYuQdpxpKeCYgR8RDSpfY5y 4wObvAPUNMstdeeZaLSjJuqIWr+ME3Dc8KOx1FG70Vxre0XuWhT0DKucKw3pBq4= =otXF -----END PGP SIGNATURE----- --------------enig5E9C7EBC5DA0188AE309DA6F-- ------------=_1322760963-27011-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Dec 2011 17:10:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWA9c-0006ND-UN for submit@debbugs.gnu.org; Thu, 01 Dec 2011 12:10:37 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RW8ej-0003oV-5B for submit@debbugs.gnu.org; Thu, 01 Dec 2011 10:34:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RW8eV-0000oK-Ir for submit@debbugs.gnu.org; Thu, 01 Dec 2011 10:34:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:39876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW8eV-0000oG-HL for submit@debbugs.gnu.org; Thu, 01 Dec 2011 10:34:23 -0500 Received: from eggs.gnu.org ([140.186.70.92]:59914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW8eP-0005zj-Ti for bug-coreutils@gnu.org; Thu, 01 Dec 2011 10:34:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RW8eK-0000mo-2o for bug-coreutils@gnu.org; Thu, 01 Dec 2011 10:34:17 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:44970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW8eJ-0000mh-P3 for bug-coreutils@gnu.org; Thu, 01 Dec 2011 10:34:12 -0500 Received: by bke17 with SMTP id 17so2951818bke.0 for ; Thu, 01 Dec 2011 07:34:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=u1ejJZmLIn2ofGqcyrx7UVhgpGIiwx04e7w9+SFlKLs=; b=H95sZ9jSBr1hhdhLdZ0fbnsC3TT/3pc0fNdxObidOx/TveQ55ciqYhlJWsAzfahloG nxWiWrI1DcEkIp66DOiHIx7oxuO0E/WC7nXq9RMk4w3XPCaEGNXZCPTQzL/cVa58b8Ca xbZ7RuPnRSiFYUrfxxCCmBbUwcIyjmxwf2ch4= Received: by 10.204.132.78 with SMTP id a14mr8146912bkt.15.1322753650951; Thu, 01 Dec 2011 07:34:10 -0800 (PST) Received: from [192.168.1.11] (nat4-240.ghnet.pl. [91.150.221.240]) by mx.google.com with ESMTPS id hw14sm12011351bkc.16.2011.12.01.07.34.10 (version=SSLv3 cipher=OTHER); Thu, 01 Dec 2011 07:34:10 -0800 (PST) Message-ID: <4ED79E71.10804@gmail.com> Date: Thu, 01 Dec 2011 16:34:09 +0100 From: Krzysztof Kowalski User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: Century bug in date utility? References: <4ED79D11.5080200@gmail.com> In-Reply-To: <4ED79D11.5080200@gmail.com> X-Enigmail-Version: 1.3.3 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 01 Dec 2011 12:10:35 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -5.6 (-----) Hello, We have 2011, HOWEVER: korn% date +%C 20 korn% date Thu Dec 1 16:26:30 CET 2011 apc% apc% date +%C 20 apc% apc% date Thu Dec 1 16:26:51 2011 And many other call returns that we live in 20 century :) For a test I changed system time to 1997 and date utility returned 20 century as well :) -- best regards -- Kowalski Krzysztof ------------=_1322760963-27011-1-- From unknown Sun Jun 22 08:08:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#10182: Century bug in date utility? Resent-From: Bob Proulx Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 01 Dec 2011 21:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10182 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: notabug To: Krzysztof Kowalski Cc: 10182@debbugs.gnu.org Received: via spool by 10182-submit@debbugs.gnu.org id=B10182.132277577619764 (code B ref 10182); Thu, 01 Dec 2011 21:43:01 +0000 Received: (at 10182) by debbugs.gnu.org; 1 Dec 2011 21:42:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWEP9-00058i-AY for submit@debbugs.gnu.org; Thu, 01 Dec 2011 16:42:56 -0500 Received: from joseki.proulx.com ([216.17.153.58]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RWEP5-00058W-DQ for 10182@debbugs.gnu.org; Thu, 01 Dec 2011 16:42:52 -0500 Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id A0CAF211D2; Thu, 1 Dec 2011 14:42:34 -0700 (MST) Received: by hysteria.proulx.com (Postfix, from userid 1000) id 60E7D2DCD7; Thu, 1 Dec 2011 14:42:34 -0700 (MST) Date: Thu, 1 Dec 2011 14:42:34 -0700 From: Bob Proulx Message-ID: <20111201214234.GA1694@hysteria.proulx.com> References: <4ED79D11.5080200@gmail.com> <4ED79E71.10804@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ED79E71.10804@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 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: -2.5 (--) Krzysztof Kowalski wrote: > For a test I changed system time to 1997 and date utility returned 20 > century as well :) Of course you know you don't need to change the system time to test this. You can do it easily with date. $ date -d '1997-01-01 12:00 UTC' +%C 19 Bob