CQG API 4.0 - Revised
IsTimeInSession Method
See Also  Send Feedback
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.

CQGSessions Collection : IsTimeInSession Method

Glossary Item Box

Description

Specifies whether the given date is within one of the sessions in the sessions collection.

Syntax

Visual Basic
Public Function IsTimeInSession( _
   ByVal date_time As Date, _
   Optional ByVal use_session_valid_times As Boolean = False _
) As Boolean

Parameters

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.

Return Type

True if the given date is within one of the sessions in the sessions collection, False otherwise

See Also