Much of TZ-hell (I almost dare say all) has been sorted through in xts. http://cran.r-project.org/web/packages/xts/index.html
Peruse the sources for inspiration or just take some comfort in that you are not the only one ;-) Jeff On Fri, Feb 4, 2011 at 9:24 AM, Joris Meys <[email protected]> wrote: > Been too fast : I am in Central European Time (GMT +1), which explains > the time conversion. Still, I find it highly annoying that as.POSIXlt > assumes that the time is given in GMT and has to be converted to > whatever timezone you're in if you don't specify anything. > > Probably this behaviour is not going to be changed, but it's causing > very hard-to-track-down bugs nonetheless. > > Cheers > Joris > > On Fri, Feb 4, 2011 at 4:21 PM, Joris Meys <[email protected]> wrote: >> 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 >> [email protected] >> ------------------------------- >> Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php >> > > > > -- > Joris Meys > Statistical consultant > > Ghent University > Faculty of Bioscience Engineering > Department of Applied mathematics, biometrics and process control > > tel : +32 9 264 59 87 > [email protected] > ------------------------------- > Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > -- Jeffrey Ryan [email protected] www.lemnica.com ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
