This is a compare function of time. It extracts the hours, minutes and seconds to check if it falls in specified time range.
BetweenTime(x, interval)
| x | A   | 
    
|---|---|
| interval | A character vector of boundary values, each element should be in format
  | 
    
TRUE or FALSE.
#> [1] TRUE#> [1] FALSE