Re: [R] Problem with as.POSIXlt$hour

From: PtitBleu <ptit_bleu_at_yahoo.fr>
Date: Tue, 15 Jun 2010 07:23:48 -0700 (PDT)

Hello again,

You are right: it corresponds to the DST time transition in France (I think you have guessed it was France from my "Frenglish" style - sorry about it).

To get around this problem, I now use :
as.numeric(format(strptime("2010-03-28 02:00:00", format="%Y-%m-%d %H:%M:%S"), format="%H"))

Thanks again for your help.
Ptit Bleu.

-- 
View this message in context: http://r.789695.n4.nabble.com/Problem-with-as-POSIXlt-hour-tp2255758p2255997.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 15 Jun 2010 - 19:10:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 Jun 2010 - 19:20:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive