C# Class Kimono.KTimeZoneData

Inheritance: Object, IDisposable
ファイルを表示 Open project: 0xd34df00d/Qross Class Usage Examples

Protected Properties

Property Type Description
interceptor Qyoto.SmokeInvocation

Public Methods

Method Description
Dispose ( ) : void
KTimeZoneData ( ) : System
KTimeZoneData ( KTimeZoneData c ) : System
LeapSecondChange ( Qyoto.QDateTime utc ) : KTimeZone.LeapSeconds Find the leap second adjustment which is applicable at a given UTC time. name="utc" UTC date/time. An error occurs if utc.timeSpec() is not Qt.UTC.
LeapSecondChanges ( ) : List Return all leap second adjustments, in time order. Note that some time zone data sources (such as system time zones accessed via the system libraries) may not provide information on leap second adjustments. In such cases, this method will return an empty list.
Phases ( ) : List Return all daylight savings time phases. Note that some time zone data sources (such as system time zones accessed via the system libraries) may not allow a list of daylight savings time changes to be compiled easily. In such cases, this method will return an empty list.
PreviousUtcOffset ( ) : int Returns the UTC offset to use before the start of data for the time zone.
TransitionIndex ( Qyoto.QDateTime dt ) : int
TransitionIndex ( Qyoto.QDateTime dt, int &secondIndex ) : int
TransitionIndex ( Qyoto.QDateTime dt, int &secondIndex, bool &validTime ) : int Return all daylight saving transitions, in time order. If desired, the transitions returned may be restricted to a specified time range. Note that some time zone data sources (such as system time zones accessed via the system libraries) may not allow a list of daylight saving time changes to be compiled easily. In such cases, this method will return an empty list. name="start" start date/time, or invalid date/time to return all transitions up to end. start.timeSpec() must be Qt.UTC, else start will be considered invalid. name="end" end date/time, or invalid date/time for no end. end.timeSpec() must be Qt.UTC, else end will be considered invalid. Find the last daylight savings time transition at or before a given UTC or local time. Because of daylight savings time shifts, a local time may occur twice or may not occur at all. In the former case, the transitions at or before both occurrences of dt may optionally be calculated and returned in secondTransition. The latter case may optionally be detected by use of validTime. name="dt" date/time. dt.timeSpec() may be set to Qt.UTC or Qt.LocalTime. name="secondTransition" if non-null, and the dt occurs twice, receives the transition for the second occurrence. Otherwise, it is set the same as the return value. name="validTime" if non-null, is set to false if dt does not occur, or to true otherwise Find the index to the last daylight savings time transition at or before a given UTC or local time. The return value is the index into the transition list returned by transitions(). Because of daylight savings time shifts, a local time may occur twice or may not occur at all. In the former case, the transitions at or before both occurrences of dt may optionally be calculated and returned in secondIndex. The latter case may optionally be detected by use of validTime. name="dt" date/time. dt.timeSpec() may be set to Qt.UTC or Qt.LocalTime. name="secondIndex" if non-null, and the dt occurs twice, receives the index to the transition for the second occurrence. Otherwise, it is set the same as the return value. name="validTime" if non-null, is set to false if dt does not occur, or to true otherwise
TransitionTimes ( KTimeZone phase ) : List
TransitionTimes ( KTimeZone phase, Qyoto.QDateTime start ) : List
TransitionTimes ( KTimeZone phase, Qyoto.QDateTime start, Qyoto.QDateTime end ) : List Return the times of all daylight saving transitions to a given time zone phase, in time order. If desired, the times returned may be restricted to a specified time range. Note that some time zone data sources (such as system time zones accessed via the system libraries) may not allow a list of daylight saving time changes to be compiled easily. In such cases, this method will return an empty list. name="phase" time zone phase name="start" start UTC date/time, or invalid date/time to return all transitions up to end. start.timeSpec() must be Qt.UTC, else start will be considered invalid. name="end" end UTC date/time, or invalid date/time for no end. end.timeSpec() must be Qt.UTC, else end will be considered invalid.

Protected Methods

Method Description
CreateProxy ( ) : void
KTimeZoneData ( Type dummy ) : System
SetLeapSecondChanges ( List adjusts ) : void Initialise the daylight savings time transition list. name="transitions" list of transitions Initialise the leap seconds adjustment list. name="adjusts" list of adjustments
SetPhases ( List phases, int previousUtcOffset ) : void Initialise the daylight savings time phase list. name="phases" list of phases name="previousUtcOffset" UTC offset to use before the start of the first phase

Private Methods

Method Description
Abbreviation ( Qyoto.QDateTime utcDateTime ) : Qyoto.QByteArray
Abbreviations ( ) : List
Clone ( ) : KTimeZoneData
HasTransitions ( ) : bool
UtcOffsets ( ) : List

Method Details

CreateProxy() protected method

protected CreateProxy ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

KTimeZoneData() public method

public KTimeZoneData ( ) : System
return System

KTimeZoneData() public method

public KTimeZoneData ( KTimeZoneData c ) : System
c KTimeZoneData
return System

KTimeZoneData() protected method

protected KTimeZoneData ( Type dummy ) : System
dummy System.Type
return System

LeapSecondChange() public method

Find the leap second adjustment which is applicable at a given UTC time. name="utc" UTC date/time. An error occurs if utc.timeSpec() is not Qt.UTC.
public LeapSecondChange ( Qyoto.QDateTime utc ) : KTimeZone.LeapSeconds
utc Qyoto.QDateTime
return KTimeZone.LeapSeconds

LeapSecondChanges() public method

Return all leap second adjustments, in time order. Note that some time zone data sources (such as system time zones accessed via the system libraries) may not provide information on leap second adjustments. In such cases, this method will return an empty list.
public LeapSecondChanges ( ) : List
return List

Phases() public method

Return all daylight savings time phases. Note that some time zone data sources (such as system time zones accessed via the system libraries) may not allow a list of daylight savings time changes to be compiled easily. In such cases, this method will return an empty list.
public Phases ( ) : List
return List

PreviousUtcOffset() public method

Returns the UTC offset to use before the start of data for the time zone.
public PreviousUtcOffset ( ) : int
return int

SetLeapSecondChanges() protected method

Initialise the daylight savings time transition list. name="transitions" list of transitions Initialise the leap seconds adjustment list. name="adjusts" list of adjustments
protected SetLeapSecondChanges ( List adjusts ) : void
adjusts List
return void

SetPhases() protected method

Initialise the daylight savings time phase list. name="phases" list of phases name="previousUtcOffset" UTC offset to use before the start of the first phase
protected SetPhases ( List phases, int previousUtcOffset ) : void
phases List
previousUtcOffset int
return void

TransitionIndex() public method

public TransitionIndex ( Qyoto.QDateTime dt ) : int
dt Qyoto.QDateTime
return int

TransitionIndex() public method

public TransitionIndex ( Qyoto.QDateTime dt, int &secondIndex ) : int
dt Qyoto.QDateTime
secondIndex int
return int

TransitionIndex() public method

Return all daylight saving transitions, in time order. If desired, the transitions returned may be restricted to a specified time range. Note that some time zone data sources (such as system time zones accessed via the system libraries) may not allow a list of daylight saving time changes to be compiled easily. In such cases, this method will return an empty list. name="start" start date/time, or invalid date/time to return all transitions up to end. start.timeSpec() must be Qt.UTC, else start will be considered invalid. name="end" end date/time, or invalid date/time for no end. end.timeSpec() must be Qt.UTC, else end will be considered invalid. Find the last daylight savings time transition at or before a given UTC or local time. Because of daylight savings time shifts, a local time may occur twice or may not occur at all. In the former case, the transitions at or before both occurrences of dt may optionally be calculated and returned in secondTransition. The latter case may optionally be detected by use of validTime. name="dt" date/time. dt.timeSpec() may be set to Qt.UTC or Qt.LocalTime. name="secondTransition" if non-null, and the dt occurs twice, receives the transition for the second occurrence. Otherwise, it is set the same as the return value. name="validTime" if non-null, is set to false if dt does not occur, or to true otherwise Find the index to the last daylight savings time transition at or before a given UTC or local time. The return value is the index into the transition list returned by transitions(). Because of daylight savings time shifts, a local time may occur twice or may not occur at all. In the former case, the transitions at or before both occurrences of dt may optionally be calculated and returned in secondIndex. The latter case may optionally be detected by use of validTime. name="dt" date/time. dt.timeSpec() may be set to Qt.UTC or Qt.LocalTime. name="secondIndex" if non-null, and the dt occurs twice, receives the index to the transition for the second occurrence. Otherwise, it is set the same as the return value. name="validTime" if non-null, is set to false if dt does not occur, or to true otherwise
public TransitionIndex ( Qyoto.QDateTime dt, int &secondIndex, bool &validTime ) : int
dt Qyoto.QDateTime
secondIndex int
validTime bool
return int

TransitionTimes() public method

public TransitionTimes ( KTimeZone phase ) : List
phase KTimeZone
return List

TransitionTimes() public method

public TransitionTimes ( KTimeZone phase, Qyoto.QDateTime start ) : List
phase KTimeZone
start Qyoto.QDateTime
return List

TransitionTimes() public method

Return the times of all daylight saving transitions to a given time zone phase, in time order. If desired, the times returned may be restricted to a specified time range. Note that some time zone data sources (such as system time zones accessed via the system libraries) may not allow a list of daylight saving time changes to be compiled easily. In such cases, this method will return an empty list. name="phase" time zone phase name="start" start UTC date/time, or invalid date/time to return all transitions up to end. start.timeSpec() must be Qt.UTC, else start will be considered invalid. name="end" end UTC date/time, or invalid date/time for no end. end.timeSpec() must be Qt.UTC, else end will be considered invalid.
public TransitionTimes ( KTimeZone phase, Qyoto.QDateTime start, Qyoto.QDateTime end ) : List
phase KTimeZone
start Qyoto.QDateTime
end Qyoto.QDateTime
return List

Property Details

interceptor protected_oe property

protected SmokeInvocation,Qyoto interceptor
return Qyoto.SmokeInvocation