1 | Current time-of-day is between the target times. |
0 | Current time-of-day is not between the target times. |
EarlierTimeOfDay | Time of day that the current time must come after in order for this to return true. |
LaterTimeOfDay | Time of day that the current time must come before in order for this to return true. |
Option | Whether to count a time-of-day that happens at the very beginning or end as being between. Defaults to BothExclusive (see More Info). |
TimeOfDayIsBetween
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.
Options are:
1. BothExclusive (Second < First < Third).
2. BothInclusive (Second <= First <= Third).
3. LeftExclusive (Second < First <= Third).
4. LeftInclusive (Second <= First < Third).
5. RightExclusive (Second <= First < Third).
6. RightInclusive (Second < First <= Third).
% # Suppose it is now 12:00 PM
% CurrentTimeOfDayIsBetween 11:59:00 12:01:00
1
% CurrentTimeOfDayIsBetween 10:59:00 11:01:00
0