[Overview][Constants][Procedures and functions][Index] |
Checks whether a date/time value is in a given range
Source position: dateutil.inc line 380
function DateTimeInRange( |
ADateTime: TDateTime; |
AStartDateTime: TDateTime; |
AEndDateTime: TDateTime; |
aInclusive: Boolean = True |
):Boolean; |
DateTimeInRange checks whether the value ADateTime lies between AStartDateTime and AEndDateTime, and returns True if it is. When AInclusive is True (the default), then the limits are included. When AInclusive is False, the limits are excluded.
The AStartDateTime value must be before AEndDateTime, but no check is performed.
|
Checks whether a date value is in a given rang |
|
|
Checks whether a time value is in a given range |