NAME
DatetimeIsAtOrBefore — Check whether first datetime happens at or before second.
SYNOPSIS
DatetimeIsAtOrBefore FirstDatetime SecondDatetime
DESCRIPTION
Return Value
1 First datetime is at or before the second.
0 First datetime is after the second.
Arguments
FirstDatetimeString in datetime format.
SecondDatetimeString in datetime format.
More Info
This command is like less than or equal to (<=). Note this command is effectively ![DatetimeIsAfter $FirstDatetime $SecondDatetime] but still we include it for the sake of convenience / expressiveness.

For information about how to configure the format, see About Date and Time Commands.


For information regarding exceptions / errors, see here.
EXAMPLES
% set FirstDatetime {2000-01-02 03:04:05}
% set SecondDatetime {2000-01-02 03:04:05}
% DatetimeIsAtOrBefore $FirstDatetime $SecondDatetime
1
SEE ALSO
DateIsOnOrAfter, DatetimeIsAfter, DatetimeIsAt, DatetimeIsAtOrAfter, DatetimeIsBefore, SetDatetimeFormat
KEYWORDS
check, datetime, verification