C# Class System.TimeZone

ファイルを表示 Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Property Type Description
CalculateUtcOffset System.TimeSpan
ResetTimeZone void

Public Methods

Method Description
GetDaylightChanges ( int year ) : DaylightTime
GetUtcOffset ( System.DateTime time ) : System.TimeSpan
IsDaylightSavingTime ( System.DateTime time ) : bool
IsDaylightSavingTime ( System.DateTime time, DaylightTime daylightTimes ) : bool
ToLocalTime ( System.DateTime time ) : System.DateTime
ToUniversalTime ( System.DateTime time ) : System.DateTime

Protected Methods

Method Description
TimeZone ( ) : System

Private Methods

Method Description
CalculateUtcOffset ( System.DateTime time, DaylightTime daylightTimes ) : System.TimeSpan
ResetTimeZone ( ) : void

Method Details

GetDaylightChanges() public abstract method

public abstract GetDaylightChanges ( int year ) : DaylightTime
year int
return System.Globalization.DaylightTime

GetUtcOffset() public abstract method

public abstract GetUtcOffset ( System.DateTime time ) : System.TimeSpan
time System.DateTime
return System.TimeSpan

IsDaylightSavingTime() public method

public IsDaylightSavingTime ( System.DateTime time ) : bool
time System.DateTime
return bool

IsDaylightSavingTime() public static method

public static IsDaylightSavingTime ( System.DateTime time, DaylightTime daylightTimes ) : bool
time System.DateTime
daylightTimes System.Globalization.DaylightTime
return bool

TimeZone() protected method

protected TimeZone ( ) : System
return System

ToLocalTime() public method

public ToLocalTime ( System.DateTime time ) : System.DateTime
time System.DateTime
return System.DateTime

ToUniversalTime() public method

public ToUniversalTime ( System.DateTime time ) : System.DateTime
time System.DateTime
return System.DateTime