bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in date: --rfc-3339=seconds and --rfc-3339=ns options do *not* outpu


From: Romain Lenglet
Subject: bug in date: --rfc-3339=seconds and --rfc-3339=ns options do *not* output timestamps in RFC 3339 format
Date: Wed, 3 May 2006 15:47:12 +0900
User-agent: KMail/1.9.1

Hi,

RFC 3339 makes it *mandatory* to separate the date and time with 
a "T" in timestamps. Cf. section 5.6 of RFC 3339, describing the 
timestamp syntax in ABNF:

date-time       = full-date "T" full-time

Replacing "T" with a space character is an option in ISO 8601, 
but not in RFC 3339.

GNU date's --rfc-3339=seconds and --rfc-3339=ns options replace 
the "T" with a space character.
Please either correct the output format, or remove that option, 
or update the manpage to document the fact that the output does 
not respect the standard.


I am not providing you a patch, since I don't want to go through 
the administrative burden of copyright transfer for so little, 
but here are the correct date formats for the RFC 3339 options:

--rfc-3339=date: "%Y-%m-%d"
--rfc-3339=seconds: "%Y-%m-%dT%H:%M:%S%:z"
--rfc-3339=ns: "%Y-%m-%dT%H:%M:%S.%N%:z"


Please CC me when responding, since I have not registered to this 
list. Thanks.

-- 
Romain LENGLET




reply via email to

[Prev in Thread] Current Thread [Next in Thread]