NAME
CurrentTimeOfDayIsAtOrBefore — Check whether current time-of-day is at or before target.
SYNOPSIS
CurrentTimeOfDayIsAtOrBefore TargetTimeOfDay
DESCRIPTION
Return Value
1 Current time-of-day is at or before target time.
0 Current time-of-day is after target time.
Arguments
TargetTimeOfDayTime of day that the current time must come at or before in order for this to return true.
More Info
This is a convenience command which combines TimeOfDayIsAtOrBefore and CurrentTimeOfDay.

The time-of-day should be formatted according to the configuration (see here for details or SetTimeOfDayFormat). The configuration defaults to %H:%M:%S, which means 12 o'clock is 12:00:00. (And if you are happy with that, you do not have to do anything to make it work, only if you want something different.)

This is intended for use, for instance, with calendar / appointment / reminder apps.


For information regarding exceptions / errors, see here.
EXAMPLES
% # Suppose it is now 12:00 PM
% CurrentTimeOfDayIsAtOrBefore 12:00:00
1
% CurrentTimeOfDayIsAtOrBefore 12:01:00
1
% CurrentTimeOfDayIsAtOrBefore 11:59:00
0
SEE ALSO
CurrentTimeOfDay, CurrentTimeOfDayIsAfter, CurrentTimeOfDayIsBefore, CurrentTimeOfDayIsBetween, TimeOfDayIsBefore
KEYWORDS
check, clock, time