added comparison functions for times