C# Класс Kimono.KTimeZoneData

Наследование: Object, IDisposable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
interceptor Qyoto.SmokeInvocation

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
Abbreviation ( Qyoto.QDateTime utcDateTime ) : Qyoto.QByteArray
Abbreviations ( ) : List
Clone ( ) : KTimeZoneData
HasTransitions ( ) : bool
UtcOffsets ( ) : List

Описание методов

CreateProxy() защищенный Метод

protected CreateProxy ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

KTimeZoneData() публичный Метод

public KTimeZoneData ( ) : System
Результат System

KTimeZoneData() публичный Метод

public KTimeZoneData ( KTimeZoneData c ) : System
c KTimeZoneData
Результат System

KTimeZoneData() защищенный Метод

protected KTimeZoneData ( Type dummy ) : System
dummy System.Type
Результат System

LeapSecondChange() публичный Метод

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
Результат KTimeZone.LeapSeconds

LeapSecondChanges() публичный Метод

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
Результат List

Phases() публичный Метод

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
Результат List

PreviousUtcOffset() публичный Метод

Returns the UTC offset to use before the start of data for the time zone.
public PreviousUtcOffset ( ) : int
Результат int

SetLeapSecondChanges() защищенный Метод

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
Результат void

SetPhases() защищенный Метод

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
Результат void

TransitionIndex() публичный Метод

public TransitionIndex ( Qyoto.QDateTime dt ) : int
dt Qyoto.QDateTime
Результат int

TransitionIndex() публичный Метод

public TransitionIndex ( Qyoto.QDateTime dt, int &secondIndex ) : int
dt Qyoto.QDateTime
secondIndex int
Результат int

TransitionIndex() публичный Метод

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
Результат int

TransitionTimes() публичный Метод

public TransitionTimes ( KTimeZone phase ) : List
phase KTimeZone
Результат List

TransitionTimes() публичный Метод

public TransitionTimes ( KTimeZone phase, Qyoto.QDateTime start ) : List
phase KTimeZone
start Qyoto.QDateTime
Результат List

TransitionTimes() публичный Метод

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
Результат List

Описание свойств

interceptor защищенное свойство

protected SmokeInvocation,Qyoto interceptor
Результат Qyoto.SmokeInvocation