[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 |
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
signature.asc
Description: This is a digitally signed message part.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Feature request: arbitrary input format for date,
Jaka Kranjc <=