Lean  $LEAN_TAG$
QuantConnect.Time.DateTimeWithZone Struct Reference

Live charting is sensitive to timezone so need to convert the local system time to a UTC and display in browser as UTC. More...

Public Member Functions

 DateTimeWithZone (DateTime dateTime, TimeZoneInfo timeZone)
 Initializes a new instance of the QuantConnect.Time.DateTimeWithZone struct. More...
 

Properties

DateTime UniversalTime [get]
 Gets the universal time. More...
 
TimeZoneInfo TimeZone [get]
 Gets the time zone. More...
 
DateTime LocalTime [get]
 Gets the local time. More...
 

Detailed Description

Live charting is sensitive to timezone so need to convert the local system time to a UTC and display in browser as UTC.

Definition at line 104 of file Time.cs.

Constructor & Destructor Documentation

◆ DateTimeWithZone()

QuantConnect.Time.DateTimeWithZone.DateTimeWithZone ( DateTime  dateTime,
TimeZoneInfo  timeZone 
)

Initializes a new instance of the QuantConnect.Time.DateTimeWithZone struct.

Parameters
dateTimeDate time.
timeZoneTime zone.

Definition at line 114 of file Time.cs.

Property Documentation

◆ UniversalTime

DateTime QuantConnect.Time.DateTimeWithZone.UniversalTime
get

Gets the universal time.

The universal time.

Definition at line 124 of file Time.cs.

◆ TimeZone

TimeZoneInfo QuantConnect.Time.DateTimeWithZone.TimeZone
get

Gets the time zone.

The time zone.

Definition at line 130 of file Time.cs.

◆ LocalTime

DateTime QuantConnect.Time.DateTimeWithZone.LocalTime
get

Gets the local time.

The local time.

Definition at line 137 of file Time.cs.


The documentation for this struct was generated from the following file: