GNU bug report logs -
#7997
Feature request for date command
Previous Next
Reported by: rms <at> gnu.org
Date: Mon, 7 Feb 2011 21:19:02 UTC
Severity: wishlist
To reply to this bug, email your comments to 7997 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7997
; Package
coreutils
.
(Mon, 07 Feb 2011 21:19:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
rms <at> gnu.org
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Mon, 07 Feb 2011 21:19:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
It should be possible to specify a timezone such as
Europe/Rome for the date input. That works in TZ
to control the output, so it should work in the input too.
--
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7997
; Package
coreutils
.
(Mon, 07 Feb 2011 23:58:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 7997 <at> debbugs.gnu.org (full text, mbox):
Richard Stallman wrote:
> It should be possible to specify a timezone such as
> Europe/Rome for the date input. That works in TZ
> to control the output, so it should work in the input too.
For date input (using --date=STRING) you can use the TZ variable to
specify the input timezone. Here is an example.
$ date -R --date='TZ="Europe/Rome" 2004-10-31 06:30'
Sat, 30 Oct 2004 23:30:00 -0600
That produced an answer in my local timezone of US/Central. This is
useful for converting dates. Here is another example.
$ TZ="America/New_York" date -R --date='TZ="Europe/Paris" 2004-10-31 06:30'
Sun, 31 Oct 2004 01:30:00 -0400
That converted a datestamp from Europe/Paris to America/New_York.
Does this help?
Bob
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#7997
; Package
coreutils
.
(Tue, 08 Feb 2011 16:25:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 7997 <at> debbugs.gnu.org (full text, mbox):
For date input (using --date=STRING) you can use the TZ variable to
specify the input timezone. Here is an example.
$ date -R --date='TZ="Europe/Rome" 2004-10-31 06:30'
Sat, 30 Oct 2004 23:30:00 -0600
$ TZ="America/New_York" date -R --date='TZ="Europe/Paris" 2004-10-31 06:30'
Sun, 31 Oct 2004 01:30:00 -0400
That does the job, but it is not documented in the manual.
Could you document it, and add these examples?
--
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org
This bug report was last modified 14 years and 128 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.