Skip to content
Prev 280962 / 398503 Next

How to extract an interval of "hour:minute" type

I think one of the suggestion was to use something like, assuming you
have the time in POSIXct

format(x$time, format = "%H:%M:%S") >= "20:10:00" & format(x$time,
format = "%H:%M:%S") <= "21:00:00"

This takes the 'date' out of the equation.  You can always write a
function to do this for you.
On Tue, Dec 27, 2011 at 1:02 PM, ikuzar <razuki at hotmail.fr> wrote: