Time is accepted in 24hr format HH:mm

I would like to compare two ranges of times, under the following conditions:

```
a) T1 > T2 
b) T2 not in-between time range of T1 
c) The T1 & T2 do not overlap

```

Are there any libraries out there or should I just cater to all the possible combinations and create my own script?