C# Class Fan.Sys.TimeZone

TimeZone.
Inheritance: FanObj
Datei anzeigen Open project: xored/f4 Class Usage Examples

Public Methods

Method Description
@typeof ( ) : Type
abbr ( int year, bool inDST ) : string
cur ( ) : TimeZone
defVal ( ) : TimeZone
dstAbbr ( long year ) : string
dstOffset ( long year ) : Duration
fromGmtOffset ( int offset ) : TimeZone
fromStr ( string name ) : TimeZone
fromStr ( string name, bool check ) : TimeZone
fullName ( ) : string
listFullNames ( ) : List
listNames ( ) : List
name ( ) : string
offset ( long year ) : Duration
rel ( ) : TimeZone
stdAbbr ( long year ) : string
toStr ( ) : string
utc ( ) : TimeZone

Private Methods

Method Description
TimeZone ( ) : System
compare ( Rule rule, DstTime x, int year, int mon, int day, int time ) : int

Compare the specified time to the dst start/end time. Return -1 if x < specified time and +1 if x > specified time.

compareAtTime ( Rule rule, DstTime x, int time ) : int

Compare at time.

compareMonth ( DstTime x, int mon ) : int

Compare month

compareOnDay ( Rule rule, DstTime x, int year, int mon, int day ) : int

Compare on day. 'd' 5 the fifth of the month 'l' lastSun the last Sunday in the month 'l' lastMon the last Monday in the month '>' Sun>=8 first Sunday on or after the eighth '<' Sun<=25 last Sunday on or before the 25th (not used)

dstOffset ( Rule rule, int year, int mon, int day, int time ) : int

Compute the daylight savings time offset (in seconds) for the specified parameters: - Rule: the rule for a given year - mon: month 0-11 - day: day 1-31 - weekday: 0-6 - time: seconds since midnight

isDstDate ( Rule rule, DstTime x, int year, int mon, int day ) : bool

Return if given date is the DstTime transition date

loadAliases ( ) : void
loadDstTime ( DataReader d ) : DstTime
loadFallback ( string fullName, string name ) : TimeZone
loadIndex ( ) : void

Load the name and file offset list from file into memory.

loadTimeZone ( string x ) : TimeZone

Find the specified name in the index and load a time zone definition. If the name is not found then return null.

rule ( int year ) : Rule

Method Details

@typeof() public method

public @typeof ( ) : Type
return Type

abbr() public method

public abbr ( int year, bool inDST ) : string
year int
inDST bool
return string

cur() public static method

public static cur ( ) : TimeZone
return TimeZone

defVal() public static method

public static defVal ( ) : TimeZone
return TimeZone

dstAbbr() public method

public dstAbbr ( long year ) : string
year long
return string

dstOffset() public method

public dstOffset ( long year ) : Duration
year long
return Duration

fromGmtOffset() public static method

public static fromGmtOffset ( int offset ) : TimeZone
offset int
return TimeZone

fromStr() public static method

public static fromStr ( string name ) : TimeZone
name string
return TimeZone

fromStr() public static method

public static fromStr ( string name, bool check ) : TimeZone
name string
check bool
return TimeZone

fullName() public method

public fullName ( ) : string
return string

listFullNames() public static method

public static listFullNames ( ) : List
return List

listNames() public static method

public static listNames ( ) : List
return List

name() public method

public name ( ) : string
return string

offset() public method

public offset ( long year ) : Duration
year long
return Duration

rel() public static method

public static rel ( ) : TimeZone
return TimeZone

stdAbbr() public method

public stdAbbr ( long year ) : string
year long
return string

toStr() public method

public toStr ( ) : string
return string

utc() public static method

public static utc ( ) : TimeZone
return TimeZone