Skip to content

LocalTimeKeeper

QuantConnect.LocalTimeKeeper

Bases: Object

Represents the current local time. This object is created via the TimeKeeper to manage conversions to local time.

time_updated

time_updated: _EventContainer[
    Callable[[Object, TimeUpdatedEventArgs], Any], Any
]

Event fired each time UpdateTime is called

time_zone

time_zone: Any

Gets the time zone of this LocalTimeKeeper

local_time

local_time: datetime

Gets the current time in terms of the time_zone