GNU bug report logs - #6453
coreutils: date -- Add new options for ISO 8601 date formats (-O)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: Jari Aalto <jari.aalto@HIDDEN>; dated Fri, 18 Jun 2010 07:58:01 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 6453 <at> debbugs.gnu.org:


Received: (at 6453) by debbugs.gnu.org; 18 Jun 2010 18:32:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 18 14:32:47 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OPgMx-0006D9-AN
	for submit <at> debbugs.gnu.org; Fri, 18 Jun 2010 14:32:47 -0400
Received: from mx1.redhat.com ([209.132.183.28])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eblake@HIDDEN>) id 1OPgMu-0006D4-DS
	for 6453 <at> debbugs.gnu.org; Fri, 18 Jun 2010 14:32:45 -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.13.8/8.13.8) with ESMTP id o5IIWb4s028712
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 18 Jun 2010 14:32:38 -0400
Received: from [10.3.225.192] (vpn-225-192.phx2.redhat.com [10.3.225.192])
	by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id o5IIWbc9020228; Fri, 18 Jun 2010 14:32:37 -0400
Message-ID: <4C1BBB8B.8010904@HIDDEN>
Date: Fri, 18 Jun 2010 12:31:39 -0600
From: Eric Blake <eblake@HIDDEN>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre
	Mnenhy/0.8.2 Thunderbird/3.0.4
MIME-Version: 1.0
To: jari <jari.aalto@HIDDEN>, 6453 <at> debbugs.gnu.org
Subject: Re: bug#6453: coreutils: date -- Add new options for ISO 8601 date
	formats (-O)
References: <871vc4u6qd.fsf@HIDDEN> <4C1B8978.7040503@HIDDEN>
	<20100618173118.GA29449@HIDDEN>
	<4C1BB034.9010006@HIDDEN>
	<20100618181834.GB29449@HIDDEN>
In-Reply-To: <20100618181834.GB29449@HIDDEN>
X-Enigmail-Version: 1.0.1
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig603E5A55F3C32692569B1A88"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12
X-Spam-Score: -10.1 (----------)
X-Debbugs-Envelope-To: 6453
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -10.1 (----------)

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig603E5A55F3C32692569B1A88
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

[I repeat - PLEASE keep the list/bug-tracker in the loop, if you expect
anything to be done about your requests]

On 06/18/2010 12:18 PM, jari wrote:
> On 2010-06-18 11:43, Eric Blake wrote:
> | So, before anyone writes such a patch, what TIMESPEC options do you
> | propose would make the most sense for a new --iso-8601 command-line
> | option?  And, seeing that RFC 3339 was derived from ISO 8601, do we e=
ven
> | need a new option, or is the existing behavior already present?  In
> | other words, I'd still like to know what particular shortcuts you fee=
l
> | are worth adding.
>=20
> I'm so used to 8601, so I dind't see the option --rfc-3339 from
> date(1) at first. Here are few commets:
>=20
>=20
>        --rfc-3339=3DTIMESPEC
>               output date and time in RFC 3339 format.
>               TIMESPEC=3D`date', `seconds', or `ns' for date and time t=
o
>               the indicated precision.  Date and time components are
>               separated by a single space: 2006-08-07 12:34:56-06:00
>=20
> Additions to -rfc-3339 option
> -----------------------------
>=20
> Current:
>=20
> 	--rfc-3339=3D"date"	2010-06-18
> 	--rfc-3339=3D"seconds"	2010-06-18 21:08:05+03:00
>=20
> It would be nice to have also without timezone:
>=20
> 	--rfc-3339=3D"time"	2010-06-18 21:08:00	(no TZ)
> 	--rfc-3339=3D"word"	2010-06-18T21:08:00	(single word with seconds)
>=20
> New option --iso8601
> --------------------
>=20
> The 3339 is mostly unknown in the field, but almost everybody
> recognize 8601, so I'd like to suggest a shorthand for the most
> commonly used format (e,g, for log entries):
>=20
> 	--iso8601
>=20
> That would be same as the long option:
>=20
>      	 --rfc-3339=3D"time"
>=20
> Perhaps also "memory friendly":
>=20
> 	--iso8601=3D"tz"
>=20
> Which would be equivalent for:
>=20
>         --rfc-3339=3D"seconds"
>=20
> Jari
>=20
>=20
> =09

--=20
Eric Blake   eblake@HIDDEN    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig603E5A55F3C32692569B1A88
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJMG7uLAAoJEKeha0olJ0Nqk7UIAKl9bwG60rIATNNp6VdIXB5d
5JfbfVZjZlt/pyt1YNW4i4uCY9YJ9nBnJ5xLa476ZDvieaBSgCCorn+zuHisw6X4
WOtI9dKy6FNCP41wIZy/NAhkp75pCOoaN66spvlmo6SRlCwshLXzX+hW93+Ymoj8
7RfsRXfkwZoG9AZMxBtmMMKwZZw0Wx7zM2LaTOQX10YuCHoTuIpcwGcjPE/ABZJc
9r9VkYtVdGzxUPtfIO7I8FRlySn+GXXxYDpNA6pWJWpDFXfVQVD1ZUPRhJk5n9mk
q6n75hd/oxsJaP2Apl+hMddfL65Sb96LU8HV/+A8oToptdLtUimDped2udNuIos=
=/JdT
-----END PGP SIGNATURE-----

--------------enig603E5A55F3C32692569B1A88--




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils@HIDDEN:
bug#6453; Package coreutils. Full text available.

Message received at 6453 <at> debbugs.gnu.org:


Received: (at 6453) by debbugs.gnu.org; 18 Jun 2010 17:44:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 18 13:44:23 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OPfc7-0005Il-F4
	for submit <at> debbugs.gnu.org; Fri, 18 Jun 2010 13:44:23 -0400
Received: from mx1.redhat.com ([209.132.183.28])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eblake@HIDDEN>) id 1OPfc5-0005If-FA
	for 6453 <at> debbugs.gnu.org; Fri, 18 Jun 2010 13:44:22 -0400
Received: from int-mx04.intmail.prod.int.phx2.redhat.com
	(int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5IHiF2B023976
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 18 Jun 2010 13:44:15 -0400
Received: from [10.3.225.192] (vpn-225-192.phx2.redhat.com [10.3.225.192])
	by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id o5IHiEGN005375; Fri, 18 Jun 2010 13:44:14 -0400
Message-ID: <4C1BB034.9010006@HIDDEN>
Date: Fri, 18 Jun 2010 11:43:16 -0600
From: Eric Blake <eblake@HIDDEN>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre
	Mnenhy/0.8.2 Thunderbird/3.0.4
MIME-Version: 1.0
To: jari <jari.aalto@HIDDEN>, 6453 <at> debbugs.gnu.org
Subject: Re: bug#6453: coreutils: date -- Add new options for ISO 8601 date
	formats (-O)
References: <871vc4u6qd.fsf@HIDDEN> <4C1B8978.7040503@HIDDEN>
	<20100618173118.GA29449@HIDDEN>
In-Reply-To: <20100618173118.GA29449@HIDDEN>
X-Enigmail-Version: 1.0.1
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enigA3AF2828A482F65E8F327258"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17
X-Spam-Score: -10.1 (----------)
X-Debbugs-Envelope-To: 6453
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -10.1 (----------)

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigA3AF2828A482F65E8F327258
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

[let's keep the list/bug-tracker in the loop]

On 06/18/2010 11:31 AM, jari wrote:
> On 2010-06-18 08:58, Eric Blake wrote:
> | > I'd like to suggest adding options to cover the typical ISO 8601 da=
tes.
> |=20
> | Nope, O is already occupied per POSIX:
>=20
> Ok.
>=20
> | common RFC layouts, it may make sense to add a new command-line optio=
n
> | --iso-8601=3DTIMESPEC as shortcuts for building common ISO layouts.
>=20
> That's even better and more straightforward as we need not to remember
> various % flags.=20
>=20
> Nice to know that the feature is considered to be included.

So, before anyone writes such a patch, what TIMESPEC options do you
propose would make the most sense for a new --iso-8601 command-line
option?  And, seeing that RFC 3339 was derived from ISO 8601, do we even
need a new option, or is the existing behavior already present?  In
other words, I'd still like to know what particular shortcuts you feel
are worth adding.

--=20
Eric Blake   eblake@HIDDEN    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enigA3AF2828A482F65E8F327258
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJMG7A0AAoJEKeha0olJ0NqWFEH/0obfKy/PdCSRRTPELMIOhLB
4OE7tHkqf90wL+U2B8tdG1V0eFpSENrKC6UmG0d5ew+hzMNhS4pZwAaELTVeEqIm
3q7IBYrNwHkGRDZs0Bwr1qm2lBzEHNzsoZ9DxtM3GVtOJrhu0xL803PG9HFSaQka
7r3SZLIXTDCeta17RsgUsvd5uw0NMDLsbLcyFGKzxIbWlf1dAcoIMwZuFQbp4sf3
POqT1YsEgryl+mNRrcbzCHNCjOa7W/wNeXBCC7VmkB9LMRJqkcvdpAZalaXvR8RQ
h9gfY2cuQkCHp/p8BcoRXe3yeLvR5TEiQJUs0zDqXjJCzBOQIrxiX4wJLq3Utro=
=nFvv
-----END PGP SIGNATURE-----

--------------enigA3AF2828A482F65E8F327258--




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils@HIDDEN:
bug#6453; Package coreutils. Full text available.

Message received at 6453 <at> debbugs.gnu.org:


Received: (at 6453) by debbugs.gnu.org; 18 Jun 2010 14:59:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 18 10:59:08 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OPd2B-00049b-U8
	for submit <at> debbugs.gnu.org; Fri, 18 Jun 2010 10:59:08 -0400
Received: from mx1.redhat.com ([209.132.183.28])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <eblake@HIDDEN>) id 1OPd29-00049D-EK
	for 6453 <at> debbugs.gnu.org; Fri, 18 Jun 2010 10:59:07 -0400
Received: from int-mx08.intmail.prod.int.phx2.redhat.com
	(int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5IEwxmp010179
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Fri, 18 Jun 2010 10:58:59 -0400
Received: from [10.3.225.192] (vpn-225-192.phx2.redhat.com [10.3.225.192])
	by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id o5IEww8U021753; Fri, 18 Jun 2010 10:58:58 -0400
Message-ID: <4C1B8978.7040503@HIDDEN>
Date: Fri, 18 Jun 2010 08:58:00 -0600
From: Eric Blake <eblake@HIDDEN>
Organization: Red Hat
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre
	Mnenhy/0.8.2 Thunderbird/3.0.4
MIME-Version: 1.0
To: Jari Aalto <jari.aalto@HIDDEN>
Subject: Re: bug#6453: coreutils: date -- Add new options for ISO 8601 date
	formats (-O)
References: <871vc4u6qd.fsf@HIDDEN>
In-Reply-To: <871vc4u6qd.fsf@HIDDEN>
X-Enigmail-Version: 1.0.1
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature";
	boundary="------------enig0ED30159E5510FB9414B1EE2"
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21
X-Spam-Score: -10.1 (----------)
X-Debbugs-Envelope-To: 6453
Cc: 6453 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -10.1 (----------)

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig0ED30159E5510FB9414B1EE2
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 06/18/2010 01:42 AM, Jari Aalto wrote:
> Package: coreutils
> Version: 8.5
> Severity: wishlist
>=20
>=20
> I'd like to suggest adding options to cover the typical ISO 8601 dates.=

> The options "O" seems to be free in date(1) manual page. Suggestions:

Nope, O is already occupied per POSIX:
http://www.opengroup.org/onlinepubs/9699919799/utilities/date.html
For example, %Oe uses different numbers than %e in some locales.
And it is documented in 'date --help' (and therefore the date man page),
under the sentence: O to use the locale's alternate numeric symbols if
available.

> The output can be produced using current option set:
>=20
>     %Y-%m-%d	1999-12-31
>     %Y-%j	1999-365
>     %G-W%V-%u	1999-W52-5
>     %H:%M:%S	23:59:59

Unfortunately, it seems like building the ISO formats from their
components will be be best we can do, as adding % extensions is very
difficult to justify.  However, given that we already have --rfc=3D2822
and --rfc-3339=3DTIMESPEC options that provide shortcuts for building
common RFC layouts, it may make sense to add a new command-line option
--iso-8601=3DTIMESPEC as shortcuts for building common ISO layouts.

> References:
>=20
>     Standard - Date - ISO 9601 (Markus Kuhn)

Did you mean 8601?

--=20
Eric Blake   eblake@HIDDEN    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig0ED30159E5510FB9414B1EE2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJMG4l4AAoJEKeha0olJ0NqbEQIALCUdnSF6Fi3wQcgdvYmzMZt
VHsEsCI7UK0vYx85vEUkdxA3wQdYO4Bh/vgEqfNz3sh6tknBj06bJADiPkwIr546
C3XcZh+y8VgXH6lnMLDCEpxZQ8SoJj39YhYxw1LVXvMBZJMRxqZlIIdvrbpok2rb
qPdYNBmCVldW7XiwdT4R+guCc6GJ4gvvtkeNYFBXzs6Ka5lBiZYpJj1hOUNHdgdO
7OmjGJ11YsBjTyKJoHnEz2o8lu68YsiR/yzkmXbZjubszwgUYLjonv+V7MkfG1ra
Q6OY31GegcyZVuDLoo1uGxSq7zWbS6uUcDq8nYg8qR3RpCDonrVN6Cd/YcGY5CU=
=v7hX
-----END PGP SIGNATURE-----

--------------enig0ED30159E5510FB9414B1EE2--




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils@HIDDEN:
bug#6453; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Jun 2010 07:57:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 18 03:57:06 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OPWRl-0000RK-As
	for submit <at> debbugs.gnu.org; Fri, 18 Jun 2010 03:57:06 -0400
Received: from emh01.mail.saunalahti.fi ([62.142.5.107])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <jari.aalto@HIDDEN>) id 1OPWDp-0000Jv-Qw
	for submit <at> debbugs.gnu.org; Fri, 18 Jun 2010 03:42:43 -0400
Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95])
	by emh01-2.mail.saunalahti.fi (Postfix) with SMTP id A4CF88C62F;
	Fri, 18 Jun 2010 10:42:37 +0300 (EEST)
Received: from emh02.mail.saunalahti.fi ([62.142.5.108])
	by vs3-11.mail.saunalahti.fi ([62.142.5.95])
	with SMTP (gateway) id A0635CA05EE; Fri, 18 Jun 2010 10:42:37 +0300
Received: from picasso.cante.net (a91-155-187-216.elisa-laajakaista.fi
	[91.155.187.216])
	by emh02.mail.saunalahti.fi (Postfix) with ESMTP id 2D5282BD45;
	Fri, 18 Jun 2010 10:42:34 +0300 (EEST)
From: Jari Aalto <jari.aalto@HIDDEN>
To: submit <at> debbugs.gnu.org
Subject: coreutils: date -- Add new options for ISO 8601 date formats (-O)
Date: Fri, 18 Jun 2010 10:42:34 +0300
Message-ID: <871vc4u6qd.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Antivirus: VAMS
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 18 Jun 2010 03:57:04 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.3 (-)

Package: coreutils
Version: 8.5
Severity: wishlist


I'd like to suggest adding options to cover the typical ISO 8601 dates.
The options "O" seems to be free in date(1) manual page. Suggestions:

    -O      YYYY-MM-DD HH:MM        (possibly most of then used)
    -O::S   YYYY-MM-DD HH:MM:SS
    -O::T   YYYY-MM-DD"T"HH:MM:SS   (The canonical form)

The output can be produced using current option set:

    %Y-%m-%d	1999-12-31
    %Y-%j	1999-365
    %G-W%V-%u	1999-W52-5
    %H:%M:%S	23:59:59

but it would be nice to have a standrd "-O" option set specifically
designed from ISO dates.

Jari

References:

    Standard - Date - ISO 9601 (Markus Kuhn)
    http://www.cl.cam.ac.uk/~mgk25/iso-time.html

    Standard - Date - ISO 8601 (Wikipedia)
    http://en.wikipedia.org/wiki/ISO_8601




Acknowledgement sent to Jari Aalto <jari.aalto@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils@HIDDEN:
bug#6453; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.