delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
X-IronPortListener: | Outbound_SMTP |
X-IronPort-Anti-Spam-Filtered: | true |
X-IronPort-Anti-Spam-Result: | Av4EACzsHU+cKEdK/2dsb2JhbABDriqBBYFyAQEBBBIoUQEIDQsVBwIvEyYBBBMIGodimH2EN5sZiH6CRWMEiDuEQo4VjHM |
From: | "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Date: | Mon, 23 Jan 2012 18:30:50 -0500 |
Subject: | RE: 1.7.9 : date command fails for year 1900 |
Message-ID: | <0105D5C1E0353146B1B222348B0411A20A51A74206@NIHMLBX02.nih.gov> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id q0NNVEEg025056 |
Keith Christian sent the following at Monday, January 23, 2012 2:00 PM > >> cygwin sent the following at Sunday, January 22, 2012 3:39 PM > >On Sun, Jan 22, 2012 at 10:23 PM, Buchbinder, Barry (NIH/NIAID) [E] ><BBuchbinder AT niaid DOT nih DOT gov> wrote: >> /c> cal 9 1752 >> September 1752 >> Su Mo Tu We Th Fr Sa >> 1 2 14 15 16 >> 17 18 19 20 21 22 23 >> 24 25 26 27 28 29 30 >> >> Is this a bug? > >Not a bug, see: http://www.infoplease.com/spot/gregorian1.html. Just for the record (and my self-respect), that was a rhetorical question. (Or was it sarcastic?) 9/1752 was the transition only for Great Britain and its dependencies. See Wikipedia for other places. <http://en.wikipedia.org/wiki/Gregorian_calendar#Adoption> (I especially like Alaska, which combined a changed calendar with a shift of the International Dateline.) So (rhetorical) questions for the OP would be how to fix - date and cal so that they properly take into account changes to calendars in different locations. - date to account for leap seconds. <http://en.wikipedia.org/wiki/Unix_epoch#Encoding_time_as_a_number> Also, the OP asked why a signed long integer. See <http://en.wikipedia.org/wiki/Unix_time#Representing_the_number> - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |