Hi,
the "pure numbers" input support in date is very limited. The info page 
suggests only YYYYMMDD, HHMM and HH are accepted. It would be nice if date 
could work with (practically) any format, the same way it can for the output.

Example:
$ date -u -d 20080210155848
date: invalid date `20080210155848'

Wanted:
$ date -u -i +%Y%m%d%H%M%S -d 20080210155848
Sun Feb 10 15:58:48 CET 2008
$ date -u -i +%Y%m%d%H%M%S -d 20080210155848 +%H
15

The -i is, of course, just a suggestion, the implementation details are 
irrelevant to me.

Thanks for your good work & bye!

-- 
We cannot command nature except by obeying her.  --Sir Francis Bacon
Have a sourcerous day! www.sourcemage.org

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to