From jorismeys at gmail.com  Fri Feb  4 16:21:55 2011
From: jorismeys at gmail.com (Joris Meys)
Date: Fri, 4 Feb 2011 16:21:55 +0100
Subject: [Rd] terribly annoying bug with POSIXlt : one o'clock is midnight?
Message-ID: <AANLkTi=sY4fzwZ1SBSnW540FXPMEay3rAciv_u2M5hvm@mail.gmail.com>

Apparently, as.POSIXlt takes one o'clock as the start of the day :

> as.POSIXlt(0,origin="1970-01-01")
[1] "1970-01-01 01:00:00 CET"
> as.POSIXlt(0,origin="1970-01-01 00:00:00")
[1] "1970-01-01 01:00:00 CET"
> as.POSIXlt(0,origin="1970-01-01 23:59:59")
[1] "1970-01-02 00:59:59 CET"

Cheers



-- 
Joris Meys
Statistical consultant

Ghent University
Faculty of Bioscience Engineering
Department of Applied mathematics, biometrics and process control

tel : +32 9 264 59 87
Joris.Meys at Ugent.be
-------------------------------
Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php



[Rd] terribly annoying bug with POSIXlt : one o'clock is midnight?
Joris Meys