Finish implementing the date and time comparison functions