Table of Contents

Class TimeConverter

Namespace
Ecng.Xaml.Converters
Assembly
StockSharp.Xaml.dll

DateTimeOffset or DateTime converter to a specified time zone.

public class TimeConverter : IValueConverter
Inheritance
TimeConverter
Implements
Inherited Members
Extension Methods

Constructors

TimeConverter()

public TimeConverter()

Properties

ConvertToLocal

public bool ConvertToLocal { get; set; }

Property Value

bool

GlobalTimeZone

Global time zone for whole app.

public static TimeZoneInfo GlobalTimeZone { get; set; }

Property Value

TimeZoneInfo

TimeZone

Time zone.

public TimeZoneInfo TimeZone { get; }

Property Value

TimeZoneInfo

TimeZoneId

Set TimeZone by string id.

public string TimeZoneId { get; set; }

Property Value

string