[R] How long is a day?
Laimonis Kavalieris
laimonis at maths.otago.ac.nz
Wed Jul 2 03:29:18 CEST 2003
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 of 29.04167 days
I am running R-1.7.1 compiled on RedHat 9.0
Laimonis
--
Dr Laimonis Kavalieris
Department of Mathematics and Statistics
University of Otago
PO Box 56 Dunedin
New Zealand
Tel (64)(3)479 7780
Fax (64)(3)479 8427
More information about the R-help
mailing list