bug-coreutils
[Top][All Lists]
Advanced

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

Re: YYYYMMDD HHMMSS [TZ] ?


From: Warren Crossing
Subject: Re: YYYYMMDD HHMMSS [TZ] ?
Date: Wed, 09 May 2007 17:01:57 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.2) Gecko/20070227 SeaMonkey/1.1.1

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






reply via email to

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