Specifies whether the given date is within one of the sessions in the sessions collection.
Visual Basic |
---|
Public Function IsTimeInSession( _ ByVal date_time As Date, _ Optional ByVal use_session_valid_times As Boolean = False _ ) As Boolean |
- date_time
- The date to be checked, in user-configured time zone, represented as Date
- use_session_valid_times
This is an optional flag identifying whether the official or valid session times should be used.
- if True, the valid start and end times will be used.
-if False, the official start and end times will be used.
True if the given date is within one of the sessions in the sessions collection, False otherwise