Even when you specify the format
date -d '2007-01-01 010101' +'%Y-%m-%D %H%M%S'
date: invalid date `2007-01-01 010101'
I'd also like to see support for setting times based on date formats.
To make a copy of the entire date in order to set it seems erroneous (
why you may even lose precision esp. where sudo is required)
With consideration,
Warren Crossing.
Matthew Woehlke wrote:
Micah Cowan wrote:
Karl Berry wrote:
It already supports YYYY-MM-DD HH:MM:SS (also with TZ).
I know, and I am glad, but as I wrote in my original message, the forms
without punctuation would also be useful (to me anyway) to support.
The punctuation is already optional:
$ date -d 20070508\ 1406
Tue May 8 14:06:00 PDT 2007
The original post also talked about seconds...
$ date -d 20070508\ 14:06:25
Tue May 8 14:06:25 PDT 2007
$ date -d 20070508\ 140625
date: invalid date `20070508 140625'
$ date --version
date (GNU coreutils) 6.9
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils