DateTimeUtcLessOrEqualOrInvalid🔗

Type: Transpilable verification function
Check that the date-time that is before or at the same instant as other, unless either of them is invalid.
The invalid date-times are reported by the invariants of DateTimeUtc, so that we do not report them twice. See DateTimeUtcLess.
that🔗
Date-time which is expected to come first or at the same instant
other🔗
Date-time which is expected to come later or at the same instant
Return🔗
True if that is before or at the same instant as other, or if either of them is not a valid xs:dateTime in UTC

Code

other_less = date_time_UTC_less(other, that)
if other_less is None:
    return True

return not other_less