add functions to compare two datetimes and check if two datetimes are in the same minute. Use import gen_utils to use function.