C# Class Fan.Sys.TimeZone

TimeZone.
Inheritance: FanObj
Afficher le fichier Open project: xored/f4 Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public @typeof ( ) : Type
Résultat Type

abbr() public méthode

public abbr ( int year, bool inDST ) : string
year int
inDST bool
Résultat string

cur() public static méthode

public static cur ( ) : TimeZone
Résultat TimeZone

defVal() public static méthode

public static defVal ( ) : TimeZone
Résultat TimeZone

dstAbbr() public méthode

public dstAbbr ( long year ) : string
year long
Résultat string

dstOffset() public méthode

public dstOffset ( long year ) : Duration
year long
Résultat Duration

fromGmtOffset() public static méthode

public static fromGmtOffset ( int offset ) : TimeZone
offset int
Résultat TimeZone

fromStr() public static méthode

public static fromStr ( string name ) : TimeZone
name string
Résultat TimeZone

fromStr() public static méthode

public static fromStr ( string name, bool check ) : TimeZone
name string
check bool
Résultat TimeZone

fullName() public méthode

public fullName ( ) : string
Résultat string

listFullNames() public static méthode

public static listFullNames ( ) : List
Résultat List

listNames() public static méthode

public static listNames ( ) : List
Résultat List

name() public méthode

public name ( ) : string
Résultat string

offset() public méthode

public offset ( long year ) : Duration
year long
Résultat Duration

rel() public static méthode

public static rel ( ) : TimeZone
Résultat TimeZone

stdAbbr() public méthode

public stdAbbr ( long year ) : string
year long
Résultat string

toStr() public méthode

public toStr ( ) : string
Résultat string

utc() public static méthode

public static utc ( ) : TimeZone
Résultat TimeZone