coreutils
[Top][All Lists]
Advanced

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

date fails to parse seconds and nanoseconds


From: Kasza Péter
Subject: date fails to parse seconds and nanoseconds
Date: Mon, 9 Jun 2014 19:35:40 +0200
User-agent: Mutt/1.5.22.1-rc1 (2013-10-16)

Date can't seem to parse seconds (or nanoseconds) when they are
immedately after another term. E.g. trying to parse the string
"20140609T150610" (2014-06-09-15:06:10) fails.

> % date +%Y%m%dT%H%M%S  -d "20140609T150610"
> date: invalid date ‘20140609T150610’


The date parses correctly, if the seconds are removed:

> % date +%Y%m%dT%H%M%S  -d "20140609T1506"
> 20140609T100600


Using the output from the previous command also gives an error:

> % date +%Y%m%dT%H%M%S  -d "20140609T150600"
> date: invalid date ‘20140609T150600’

Is this a bug or am I doing something the wrong way?

Thanks!

-- 
Best Regards,
Peter Kasza

http://www.iit.uni-miskolc.hu/~kasza1
address@hidden

()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments



reply via email to

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