Displaying 1 result from an estimated 1 matches for "tp2255758p2255997".
2010 Jun 15
3
Problem with as.POSIXlt$hour
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-03-28 02:00:00")$hour which gives 0.
I don't understand why it doesn't work with this particular date.
Any