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")
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
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
3 matches
Mail list logo