bug-coreutils
[Top][All Lists]
Advanced

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

[date] ISO-8601 date format


From: JL Lacroix
Subject: [date] ISO-8601 date format
Date: Mon, 9 Oct 2006 10:00:03 +0200

Hello,

To convert a date into the full ISO-8601 format one can do this:

     $ date --iso-8601=seconds --date "sun oct 1 5:45:02PM"

It will correctly returns:

     2006-10-01T17:45:02+0200

But when we want to convert a ISO-8601 formated date into a man readable format:

     $ date --date "2006-10-01T17:45:02"
Returns:
     Sun Oct  1 12:45:02 CEST 2006

     $ date --date "2006-10-01T17:45:02+0200"
Returns
     date: invalid date `2006-10-01T17:45:02+0200'

Obviously, the full ISO-8601 format is not accepted as date input format.

Any work around?

date --version --> (coreutils) 5.2.1




reply via email to

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