C# Class Quartz.Util.TimeZoneUtil

Mostra file Open project: quartznet/quartznet

Public Methods

Method Description
ConvertTime ( DateTimeOffset dateTimeOffset, TimeZoneInfo timeZoneInfo ) : DateTimeOffset

TimeZoneInfo.ConvertTime is not supported under mono

FindTimeZoneById ( string id ) : TimeZoneInfo

Tries to find time zone with given id, has ability do some fallbacks when necessary.

GetUtcOffset ( System.DateTime dateTime, TimeZoneInfo timeZoneInfo ) : System.TimeSpan
GetUtcOffset ( DateTimeOffset dateTimeOffset, TimeZoneInfo timeZoneInfo ) : System.TimeSpan

TimeZoneInfo.GetUtcOffset(DateTimeOffset) is not supported under mono

Private Methods

Method Description
TimeZoneUtil ( ) : System

Method Details

ConvertTime() public static method

TimeZoneInfo.ConvertTime is not supported under mono
public static ConvertTime ( DateTimeOffset dateTimeOffset, TimeZoneInfo timeZoneInfo ) : DateTimeOffset
dateTimeOffset DateTimeOffset
timeZoneInfo System.TimeZoneInfo
return DateTimeOffset

FindTimeZoneById() public static method

Tries to find time zone with given id, has ability do some fallbacks when necessary.
public static FindTimeZoneById ( string id ) : TimeZoneInfo
id string System id of the time zone.
return System.TimeZoneInfo

GetUtcOffset() public static method

public static GetUtcOffset ( System.DateTime dateTime, TimeZoneInfo timeZoneInfo ) : System.TimeSpan
dateTime System.DateTime
timeZoneInfo System.TimeZoneInfo
return System.TimeSpan

GetUtcOffset() public static method

TimeZoneInfo.GetUtcOffset(DateTimeOffset) is not supported under mono
public static GetUtcOffset ( DateTimeOffset dateTimeOffset, TimeZoneInfo timeZoneInfo ) : System.TimeSpan
dateTimeOffset DateTimeOffset
timeZoneInfo System.TimeZoneInfo
return System.TimeSpan