Jim Holtman > I'd like to compare "hour1:min1:sec1" with "hour2:min2:sec2". I know how to do to compare "year1-mon1-day1 hour1:min1:sec1" with "year2-mon2-day2 hour2:min2:sec2" by converting 'character' into POSIXlt
but I'd like to konw if there is another way to do this comparison without converting my POSIXLT column into 'character' . If possible, I want to work with DateTime format and not with string so that I do not make new conversions -- View this message in context: http://r.789695.n4.nabble.com/How-to-extract-an-interval-of-hour-minute-type-tp4237144p4237800.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.