From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 10 13:56:57 2012 Received: (at submit) by debbugs.gnu.org; 10 Jun 2012 17:56:57 +0000 Received: from localhost ([127.0.0.1]:36912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdmNk-0004OY-LH for submit@debbugs.gnu.org; Sun, 10 Jun 2012 13:56:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56512) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdkVW-0001k9-14 for submit@debbugs.gnu.org; Sun, 10 Jun 2012 11:56:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdkT3-0005DT-7E for submit@debbugs.gnu.org; Sun, 10 Jun 2012 11:54:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:56004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdkT2-0005DK-UM for submit@debbugs.gnu.org; Sun, 10 Jun 2012 11:54:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdkT1-00046w-FX for bug-coreutils@gnu.org; Sun, 10 Jun 2012 11:54:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdkSz-0005Cr-GA for bug-coreutils@gnu.org; Sun, 10 Jun 2012 11:54:14 -0400 Received: from mail-gg0-f169.google.com ([209.85.161.169]:51192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdkSz-0005CG-9f for bug-coreutils@gnu.org; Sun, 10 Jun 2012 11:54:13 -0400 Received: by ggm4 with SMTP id 4so2405508ggm.0 for ; Sun, 10 Jun 2012 08:54:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=cNEsuwgiOcYwqEXD0Lf/sWTNoabwSfHRHOu5t2ZCMHc=; b=oUpUaJy7MtUDH+SbNXX68RfTrDq0uhNis+hcl56gnypZIfh1MWfDyh3TTM+C69q3TR CnjvNmTGbCiqK3V28GeTGp1Y8ciIVFY9U0K6D68lgcwhAJPYSz6nJOyBg1bD/rNbRQba 1+gLNzyc1y1Utcb3+BOmd+jzCzMmw8smZqaIGa95asGBIl3GpxTJUx3dSdtGw42i3pRz lipKAz5sp6gL8lFFy0GmNgAhlIslUkFzMf9oajz+MFw7cD5lkB30YuUk0LW5s2yokIGq d11MZ8U7AmuGPB/IxJa7m61wBNPptNYxC9daGHPh9ufFL6UC6g/oC303Nm5GNuhJgAtV RPgg== MIME-Version: 1.0 Received: by 10.236.74.74 with SMTP id w50mr16553827yhd.34.1339343649860; Sun, 10 Jun 2012 08:54:09 -0700 (PDT) Received: by 10.147.83.5 with HTTP; Sun, 10 Jun 2012 08:54:09 -0700 (PDT) Date: Sun, 10 Jun 2012 12:54:09 -0300 Message-ID: Subject: problem with command date From: amanda sabatini To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary=20cf300512567b6b5004c2203e24 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 10 Jun 2012 13:56:56 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --20cf300512567b6b5004c2203e24 Content-Type: text/plain; charset=ISO-8859-1 Hi, The follow command does not work with the specifics date: 1986-10-25; 1987-10-25; 1989-10-15; 1992-10-25; 1991-10-20; 1995-10-15; 2006-11-05. date +%d --date="1986-10-25" Sincerely, Amanda Sabatini Dufek --20cf300512567b6b5004c2203e24 Content-Type: text/html; charset=ISO-8859-1 Hi,

The follow command does not work with the specifics date: 1986-10-25; 1987-10-25; 1989-10-15; 1992-10-25; 1991-10-20; 1995-10-15; 2006-11-05.

date +%d --date="1986-10-25"

Sincerely,
Amanda Sabatini Dufek
--20cf300512567b6b5004c2203e24-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 10 20:00:40 2012 Received: (at 11667) by debbugs.gnu.org; 11 Jun 2012 00:00:40 +0000 Received: from localhost ([127.0.0.1]:37126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sds3k-0004rS-96 for submit@debbugs.gnu.org; Sun, 10 Jun 2012 20:00:40 -0400 Received: from c-98-226-12-79.hsd1.in.comcast.net ([98.226.12.79]:49816 helo=kosh.dhis.org) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1Sds3i-0004rK-7a for 11667@debbugs.gnu.org; Sun, 10 Jun 2012 20:00:38 -0400 Received: (qmail 3927 invoked by uid 1000); 10 Jun 2012 23:58:03 -0000 Message-ID: <20120610235803.3926.qmail@kosh.dhis.org> From: "Alan Curry" Subject: Re: bug#11667: problem with command date To: amanda.dufek@gmail.com (amanda sabatini) Date: Sun, 10 Jun 2012 18:58:03 -0500 (GMT+5) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: 3.9 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: amanda sabatini writes: > > Hi, > > The follow command does not work with the specifics date: 1986-10-25; > 1987-10-25; 1989-10-15; 1992-10-25; 1991-10-20; 1995-10-15; 2006-11-05. > > date +%d --date="1986-10-25" [...] Content analysis details: (3.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [98.226.12.79 listed in dnsbl.sorbs.net] 1.4 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT [98.226.12.79 listed in bb.barracudacentral.org] 3.3 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [98.226.12.79 listed in zen.spamhaus.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.0 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS X-Debbugs-Envelope-To: 11667 Cc: 11667@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 3.9 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: amanda sabatini writes: > > Hi, > > The follow command does not work with the specifics date: 1986-10-25; > 1987-10-25; 1989-10-15; 1992-10-25; 1991-10-20; 1995-10-15; 2006-11-05. > > date +%d --date="1986-10-25" [...] Content analysis details: (3.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.3 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [98.226.12.79 listed in zen.spamhaus.org] 0.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [98.226.12.79 listed in dnsbl.sorbs.net] 1.4 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT [98.226.12.79 listed in bb.barracudacentral.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.0 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS amanda sabatini writes: > > Hi, > > The follow command does not work with the specifics date: 1986-10-25; > 1987-10-25; 1989-10-15; 1992-10-25; 1991-10-20; 1995-10-15; 2006-11-05. > > date +%d --date="1986-10-25" The date command never actually works on dates alone. There is always a time attached to its calculations, even when it's not necessary for the output format you requested. When you don't specify a time with the --date option, the command guesses that you meant 00:00:00. That turns out to be a bad guess in this case, since 00:00:00 didn't exist on those days. All of those are dates on which the Brazil/East time zone shifted into daylight savings time, jumping from 23:59:59 the previous day to 01:00:00 on the day you mentioned. You can avoid this problem by adding 12:00:00 to the requested date. $ TZ=Brazil/East date +%d --date="1986-10-25" date: invalid date `1986-10-25' $ TZ=Brazil/East date +%d --date="1986-10-25 12:00:00" 25 -- Alan Curry From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 10 20:07:45 2012 Received: (at control) by debbugs.gnu.org; 11 Jun 2012 00:07:45 +0000 Received: from localhost ([127.0.0.1]:37135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdsAa-00050u-T9 for submit@debbugs.gnu.org; Sun, 10 Jun 2012 20:07:45 -0400 Received: from mail3.vodafone.ie ([213.233.128.45]:56387) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdsAZ-00050m-0I for control@debbugs.gnu.org; Sun, 10 Jun 2012 20:07:43 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiYFAOA11U9tTCAB/2dsb2JhbAANOIJ3gmCHVKV4BAOESiQKfg0CBRYLAgsDAgECAVgIAQGFRQiCI6VRkWmBI4xSggmBEgObE4xn Received: from unknown (HELO [192.168.1.79]) ([109.76.32.1]) by mail3.vodafone.ie with ESMTP; 11 Jun 2012 01:05:08 +0100 Message-ID: <4FD53634.3040100@draigBrady.com> Date: Mon, 11 Jun 2012 01:05:08 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: closing 11667 X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) package coreutils close 11667 tags 11667 notabug From unknown Mon Aug 18 06:58:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 09 Jul 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator