[Top][All Lists]

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

Feature request: arbitrary input format for date

From: Jaka Kranjc
Subject: Feature request: arbitrary input format for date
Date: Sun, 10 Feb 2008 16:05:10 +0100
User-agent: KMail/1.9.7

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.

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

$ 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

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.

reply via email to

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