Table of Contents

Struct Time.DateTimeWithZone

Namespace
FinanceSharp
Assembly
FinanceSharp.dll

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

public struct Time.DateTimeWithZone
Inherited Members
Extension Methods

Constructors

DateTimeWithZone(DateTime, TimeZoneInfo)

Initializes a new instance of the Time.DateTimeWithZone struct.

public DateTimeWithZone(DateTime dateTime, TimeZoneInfo timeZone)

Parameters

dateTime DateTime

Date time.

timeZone TimeZoneInfo

Time zone.

Properties

LocalTime

Gets the local time.

public DateTime LocalTime { get; }

Property Value

DateTime

The local time.

TimeZone

Gets the time zone.

public TimeZoneInfo TimeZone { get; }

Property Value

TimeZoneInfo

The time zone.

UniversalTime

Gets the universal time.

public DateTime UniversalTime { get; }

Property Value

DateTime

The universal time.