DateTimeInterval Class

An interval in time specifying the date and time for the inclusive start and exclusive end, i.e. [start, end).

All required parameters must be populated in order to send to Azure.

Inheritance
DateTimeInterval

Constructor

DateTimeInterval(*, start: datetime.datetime, end: datetime.datetime, **kwargs)

Parameters

start
datetime
Required

Required. A datetime indicating the inclusive/closed start of the time interval, i.e. [>><<start>><<, end). Specifying a start that occurs chronologically after end will result in an error.

end
datetime
Required

Required. A datetime indicating the exclusive/open end of the time interval, i.e. [start,>><<end>><<). Specifying an end that occurs chronologically before start will result in an error.