Subject: bug#7997: Feature request for date command

From: Bob Proulx <[email-masked]>
Date: Mon, 7 Feb 2011 17:06:35 -0700

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