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

From: PtitBleu <>
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:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
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 Please read the posting guide before posting to the list.

list of date sections of archive