NAME
TimeOfDayIsBetween — Check whether given time-of-day is between the others.
SYNOPSIS
TimeOfDayIsBetween FirstTimeOfDay SecondTimeOfDay ThirdTimeOfDay ?Option?
DESCRIPTION
Return Value
1 First time-of-day is between the others.
0 First time-of-day is not between the others.
Arguments
FirstTimeOfDayString in time-of-day format.
SecondTimeOfDayString in time-of-day format.
ThirdTimeOfDayString in time-of-day format.
OptionWhether to count a time-of-day that happens at the very beginning or end as being between. Defaults to BothExclusive (see More Info).
More Info
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).

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


For information regarding exceptions / errors, see here.
EXAMPLES
% TimeOfDayIsBetween 01:02:03 01:02:02 01:02:04
1
% TimeOfDayIsBetween 01:02:02 01:02:02 01:02:04 LeftInclusive
1
SEE ALSO
SetTimeOfDayFormat, TimeOfDayIsAfter, TimeOfDayIsAt, TimeOfDayIsAtOrAfter, TimeOfDayIsAtOrBefore, TimeOfDayIsBefore
KEYWORDS
check, time, verification