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

2010-06-15 Thread PtitBleu
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")

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

2010-06-15 Thread David Winsemius
On Jun 15, 2010, at 7:45 AM, PtitBleu wrote: Hello, In one of my functions, I need to extract the hour from a date. For example: as.POSIXlt("2010-03-27 02:00:00")$hour gives 2 as expected. It works for all the dates I've tested except the following one which is in my list of dates: as.POSI

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

2010-06-15 Thread Uwe Ligges
On 15.06.2010 13:45, PtitBleu wrote: Hello, In one of my functions, I need to extract the hour from a date. For example: as.POSIXlt("2010-03-27 02:00:00")$hour gives 2 as expected. It works for all the dates I've tested except the following one which is in my list of dates: as.POSIXlt("2010-0