Well, I live only a few seconds away from GMT and I also get > ISOdate(1900,6,16,tz="") [1] "1900-06-15 12:00:00 GMT Daylight Time"
15th, not 16th. Was 1900 a strange leap year? I certainly haven't tested thoroughly but note this: > ISOdate(1900,2,16,tz="") [1] "1900-02-16 12:00:00 GMT Standard Time" # 16th OK in February > ISOdate(1900,3,16,tz="") [1] "1900-03-15 12:00:00 GMT Standard Time" # wrong for March Using today's release of rw181beta (up to date or what?) on Win 98 (oh well). > -----Original Message----- > From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] > Sent: 19 November 2003 16:06 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [R] ISOdate returns incorrect date? > > > Security Warning: > If you are not sure an attachment is safe to open please contact > Andy on x234. There are 0 attachments with this message. > ________________________________________________________________ > > > > ISOdate works, by default, in the GMT timezone. Try: > > ISOdate(1900,6,16,tz="") > ISOdate(1950,6,16,tz="") > > If you don't need timezones and don't want to worry about them > you can alternately use the chron library for your dates and > times. > > --- > Date: Wed, 19 Nov 2003 14:58:24 +0100 > From: Heiko Schaefer <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: [R] ISOdate returns incorrect date? > > > > > Dear all, > > I have found the following (for me) incomprehensible behaviour of > ISOdate (POSIXct): > > ISOdate(1900,6,16) > [1] "1900-06-15 14:00:00 Westeuropdische Sommerzeit" > > ISOdate(1950,6,16) > [1] "1950-06-16 14:00:00 Westeuropdische Sommerzeit" > > Note that in the first case I get the 15th of June back, not > the 16th as > I would have expected! > This happened under R-1.7.1 on both windows and linux. > > I would greatly appreciate your comments, > > Heiko > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > Simon Fear Senior Statistician Syne qua non Ltd Tel: +44 (0) 1379 644449 Fax: +44 (0) 1379 644445 email: [EMAIL PROTECTED] web: http://www.synequanon.com Number of attachments included with this message: 0 This message (and any associated files) is confidential and\...{{dropped}} ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help