This method calculates the days extrema given two time objects. start time is the given time1 at 00:00:00 end time is the given time2 at 23:59:59:999
Input:
- the two times (if only time1 is provided then you get an extrema of exactly one day extrema.
Output:
- the time range. you can get the start/end times using range methods.