Re: [R] How long is a day?

2003-07-01 Thread Prof Brian Ripley
On Wed, 2 Jul 2003, Laimonis Kavalieris wrote: > Why is 19 March, 1947 a little longer than one day? A change from Daylight Savings Time in your time zone (unstated), according to your OS. Note, 0.04167 is exactly one hour, not `a little longer'. > x <- as.POSIXct("1947-04-16") > > julian(

[R] How long is a day?

2003-07-01 Thread Laimonis Kavalieris
Sorry about wasing time - Apparently NZ daylisght saving time finished on March 20, 1947 , and on March 3, 1980, and March 20, 2000 . I'm impressed that R knows all of this Laimonis -- Dr Laimonis Kavalieris Department of Mathematics and Statistics University of Otago PO Box 56 Dunedin New Zea

[R] How long is a day?

2003-07-01 Thread Laimonis Kavalieris
Why is 19 March, 1947 a little longer than one day? x <- as.POSIXct("1947-04-16") julian(x, origin = as.POSIXct("1947-03-20")) Time difference of 27 days julian(x, origin = as.POSIXct("1947-03-19")) Time difference of 28.04167 days > julian(x, origin = as.POSIXct("1947-03-18")) Time difference o