Table of Contents

Class TimeZones

Namespace
Shift.Common.Base
Assembly
Shift.Common.dll
public static class TimeZones
Inheritance
TimeZones
Inherited Members

Properties

Alaskan

public static TimeZoneInfo Alaskan { get; }

Property Value

TimeZoneInfo

Atlantic

public static TimeZoneInfo Atlantic { get; }

Property Value

TimeZoneInfo

Central

public static TimeZoneInfo Central { get; }

Property Value

TimeZoneInfo

Eastern

public static TimeZoneInfo Eastern { get; }

Property Value

TimeZoneInfo

Hawaiian

public static TimeZoneInfo Hawaiian { get; }

Property Value

TimeZoneInfo

Mountain

public static TimeZoneInfo Mountain { get; }

Property Value

TimeZoneInfo

Newfoundland

public static TimeZoneInfo Newfoundland { get; }

Property Value

TimeZoneInfo

Pacific

public static TimeZoneInfo Pacific { get; }

Property Value

TimeZoneInfo

Supported

public static TimeZoneInfo[] Supported { get; }

Property Value

TimeZoneInfo[]

Utc

public static TimeZoneInfo Utc { get; }

Property Value

TimeZoneInfo

Methods

Convert(DateTimeOffset, string)

public static DateTimeOffset Convert(DateTimeOffset when, string zone)

Parameters

when DateTimeOffset
zone string

Returns

DateTimeOffset

GetAlias(string)

public static TimeZoneAlias GetAlias(string zone)

Parameters

zone string

Returns

TimeZoneAlias

GetAlias(TimeZoneInfo)

public static TimeZoneAlias GetAlias(TimeZoneInfo zone)

Parameters

zone TimeZoneInfo

Returns

TimeZoneAlias

GetOffset(DateTime, string)

public static TimeSpan GetOffset(DateTime when, string zone)

Parameters

when DateTime
zone string

Returns

TimeSpan

GetZone(DateTimeOffset)

public static TimeZoneInfo GetZone(DateTimeOffset when)

Parameters

when DateTimeOffset

Returns

TimeZoneInfo

GetZone(string)

public static TimeZoneInfo GetZone(string zone)

Parameters

zone string

Returns

TimeZoneInfo

GetZones(DateTimeOffset)

public static TimeZoneInfo[] GetZones(DateTimeOffset when)

Parameters

when DateTimeOffset

Returns

TimeZoneInfo[]

IsValidZone(string)

public static bool IsValidZone(string zone)

Parameters

zone string

Returns

bool