GNU bug report logs - #7997
Feature request for date command

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: rms@HIDDEN; dated Mon, 7 Feb 2011 21:19:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 7997 <at> debbugs.gnu.org:


Received: (at 7997) by debbugs.gnu.org; 8 Feb 2011 16:24:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 08 11:24:21 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PmqMX-0002GH-Kd
	for submit <at> debbugs.gnu.org; Tue, 08 Feb 2011 11:24:21 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rms@HIDDEN>) id 1PmqMW-0002G4-1S
	for 7997 <at> debbugs.gnu.org; Tue, 08 Feb 2011 11:24:20 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rms@HIDDEN>)
	id 1PmqUv-0001Gs-FD; Tue, 08 Feb 2011 11:33:01 -0500
Date: Tue, 08 Feb 2011 11:33:01 -0500
Message-Id: <E1PmqUv-0001Gs-FD@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15
From: Richard Stallman <rms@HIDDEN>
To: Bob Proulx <bob@HIDDEN>
In-reply-to: <20110208000635.GA4313@HIDDEN> (message from Bob
	Proulx on Mon, 7 Feb 2011 17:06:35 -0700)
Subject: Re: bug#7997: Feature request for date command
References: <E1PmWgc-0000RM-Dv@HIDDEN>
	<20110208000635.GA4313@HIDDEN>
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: 7997
Cc: 7997 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: rms@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

    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




Information forwarded to owner <at> debbugs.gnu.org, bug-coreutils@HIDDEN:
bug#7997; Package coreutils. Full text available.

Message received at 7997 <at> debbugs.gnu.org:


Received: (at 7997) by debbugs.gnu.org; 7 Feb 2011 23:57:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 07 18:57:58 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Pmaxy-00035s-9y
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2011 18:57:58 -0500
Received: from joseki.proulx.com ([216.17.153.58])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <bob@HIDDEN>) id 1Pmaxw-00035b-9s
	for 7997 <at> debbugs.gnu.org; Mon, 07 Feb 2011 18:57:57 -0500
Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119])
	by joseki.proulx.com (Postfix) with ESMTP id EF55521308;
	Mon,  7 Feb 2011 17:06:35 -0700 (MST)
Received: by hysteria.proulx.com (Postfix, from userid 1000)
	id E8EEA2DD7A; Mon,  7 Feb 2011 17:06:35 -0700 (MST)
Date: Mon, 7 Feb 2011 17:06:35 -0700
From: Bob Proulx <bob@HIDDEN>
To: Richard Stallman <rms@HIDDEN>
Subject: Re: bug#7997: Feature request for date command
Message-ID: <20110208000635.GA4313@HIDDEN>
References: <E1PmWgc-0000RM-Dv@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <E1PmWgc-0000RM-Dv@HIDDEN>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-Spam-Score: -2.4 (--)
X-Debbugs-Envelope-To: 7997
Cc: 7997 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.4 (--)

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@HIDDEN:
bug#7997; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Feb 2011 21:18:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 07 16:18:15 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1PmYTP-0007JH-LH
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2011 16:18:15 -0500
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rms@HIDDEN>) id 1PmYTO-0007J4-MX
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2011 16:18:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rms@HIDDEN>) id 1PmYbl-0000kd-Uz
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2011 16:26:54 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00,
	T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:47606)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
	id 1PmYKC-0000xp-9L
	for submit <at> debbugs.gnu.org; Mon, 07 Feb 2011 16:08:44 -0500
Received: from [140.186.70.92] (port=43316 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PmYK5-0000iI-7R
	for bug-coreutils@HIDDEN; Mon, 07 Feb 2011 16:08:39 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rms@HIDDEN>) id 1PmWgc-0005ST-I9
	for bug-coreutils@HIDDEN; Mon, 07 Feb 2011 14:23:47 -0500
Received: from fencepost.gnu.org ([140.186.70.10]:56601)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rms@HIDDEN>)
	id 1PmWgc-0005SP-Gh
	for bug-coreutils@HIDDEN; Mon, 07 Feb 2011 14:23:46 -0500
Received: from rms by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rms@HIDDEN>)
	id 1PmWgc-0000RM-Dv; Mon, 07 Feb 2011 14:23:46 -0500
Date: Mon, 07 Feb 2011 14:23:46 -0500
Message-Id: <E1PmWgc-0000RM-Dv@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15
From: Richard Stallman <rms@HIDDEN>
To: bug-coreutils@HIDDEN
Subject: Feature request for date command
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.10
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-Received-From: 199.232.76.165
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
Reply-To: rms@HIDDEN
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

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




Acknowledgement sent to rms@HIDDEN:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils@HIDDEN:
bug#7997; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.