Support time type in max and min builtins