메소드 | 설명 | |
---|---|---|
@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 ( ) : |
||
listNames ( ) : |
||
name ( ) : string | ||
offset ( long year ) : Duration | ||
rel ( ) : TimeZone | ||
stdAbbr ( long year ) : string | ||
toStr ( ) : string | ||
utc ( ) : TimeZone |
메소드 | 설명 | |
---|---|---|
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 ( |
||
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 |
public static fromGmtOffset ( int offset ) : TimeZone | ||
offset | int | |
리턴 | TimeZone |
public static fromStr ( string name, bool check ) : TimeZone | ||
name | string | |
check | bool | |
리턴 | TimeZone |