NAME
DatetimeIsBetween — Check whether the given datetime is between others.
SYNOPSIS
DatetimeIsBetween FirstDatetime SecondDatetime ThirdDatetime ?Option?
DESCRIPTION
Return Value
1 FirstDatetime is between the others.
0 FirstDatetime is not between the others.
Arguments
FirstDatetimeString in datetime format.
SecondDatetimeString in datetime format.
ThirdDatetimeString in datetime format.
OptionWhether to count a datetime 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
% DateTimeIsBetween {2000-01-02 03:04:05} {2000-01-02 03:04:04} {2000-01-02 03:04:06}
1
% DateTimeIsBetween {2000-01-02 03:04:04} {2000-01-02 03:04:04} {2000-01-02 03:04:06}
0

% DateTimeIsBetween {2000-01-02 03:04:04} {2000-01-02 03:04:04} {2000-01-02 03:04:06} LeftInclusive
0
SEE ALSO
DateIsBetween, DatetimeIsAfter, DatetimeIsAt, DatetimeIsAtOrAfter, DatetimeIsAtOrBefore, DatetimeIsBefore, SetDatetimeFormat
KEYWORDS
check, datetime, verification