1 | Current time-of-day is before target time. |
0 | Current time-of-day is at or after target time. |
TargetTimeOfDay | Time of day that the current time must come before in order for this to return true. |
TimeOfDayIsBefore
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.
% # Suppose it is 12:00 PM
% CurrentTimeOfDayIsBefore 12:01:00
1
% CurrentTimeOfDayIsBefore 11:59:00
0