X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4F1F4903.3050003@aol.com> Date: Tue, 24 Jan 2012 19:12:51 -0500 From: Tim Prince Reply-To: tprince AT computer DOT org User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100827 Red Hat/3.1.3-1.el6 Thunderbird/3.1.3 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: 1.7.9 : date command fails for year 1900 References: <0105D5C1E0353146B1B222348B0411A20A51A74322 AT NIHMLBX02 DOT nih DOT gov> In-Reply-To: <0105D5C1E0353146B1B222348B0411A20A51A74322@NIHMLBX02.nih.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit x-aol-global-disposition: G X-AOL-SCOLL-SCORE: 0:2:354140736:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039ac1d33834f1f49033cfa X-AOL-IP: 69.133.204.177 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 01/24/2012 06:51 PM, Buchbinder, Barry (NIH/NIAID) [E] wrote: > $ date -d '500 years ago' > > Now use cal to get a calendar of that month. Do days of the week > correspond? > > Another experiment on your SL box: > > $ date -d 1752-09-10 > > This should give an error message, since (in Britain and its > Dependencies) this date did not exist. Does it? > > $ date -d 1900-02-29 > > This date didn't exist in the Gregorian calendar. (No leap year in years > divisible by 100 unless they are also divisible by 400.) Did date give an > error? > > Only the last one produces invalid date on RedHat 6.0. As you suggested, the dates produced don't appear in the corresponding months of cal. -- Tim Prince -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple