Changed operators in get_keys_in_range() function to include the earliest and latest times.