Свойство | Тип | Описание | |
---|---|---|---|
$_startDate | Horde_Date | Date to use as start date when iterating through offsets looking for a transition. |
Метод | Описание | |
---|---|---|
getListOfTimezones ( array | string $offsets, string $expectedTimezone = null ) : array | Get the list of timezone identifiers that match the given offsets, having a preference for $expectedTimezone if it's present in the results. | |
getOffsetsFromDate ( Horde_Date $date ) : array | Create a offset hash suitable for use in ActiveSync transactions | |
getOffsetsFromSyncTZ ( $data ) : array | Convert a timezone from the MAPI base64 structure to a TZ offset hash. | |
getSyncTZFromOffsets ( array $offsets ) : string | Build an MAPI TZ blob given a TZ Offset hash. | |
getTimezone ( array | string $offsets, string $expectedTimezone = null ) : string | Attempt to guess the timezone identifier from the $offsets array. |
Метод | Описание | |
---|---|---|
_checkTimezone ( DateTimeZone $timezone, array $offsets ) : array | boolean | Check if the given timezone matches the offsets and also evaluate the daylight saving time transitions for this timezone if necessary. | |
_checkTransition ( array $std, array $dst, array $offsets ) : boolean | Check if the given standardTransition and daylightTransition match to the given offsets. | |
_generateOffsetsForTransition ( array $offsets, array $transition, string $type ) : array | Calculate the offsets for the specified transition | |
_getTransitions ( DateTimeZone $timezone, Horde_Date $date ) : array | Get the transition data for moving from DST to STD time. | |
_isNthOcurrenceOfWeekdayInMonth ( integer $timestamp, integer $occurence ) : boolean | Test if the weekday of the given timestamp is the nth occurence of this weekday within its month, where '5' indicates the last occurrence even if there is less than five occurrences. | |
_setDefaultStartDate ( array $offsets = null ) | Set default value for $_startDate. |
protected static _getTransitions ( DateTimeZone $timezone, Horde_Date $date ) : array | ||
$timezone | DateTimeZone | The timezone to get the transition for |
$date | Horde_Date | The date to start from. Really only the year we are interested in is needed. |
Результат | array | An array containing the the STD and DST transitions |
protected _setDefaultStartDate ( array $offsets = null ) | ||
$offsets | array | Offsets may be avaluated for a given start year |
public static getOffsetsFromDate ( Horde_Date $date ) : array | ||
$date | Horde_Date | A date object representing the date to base the the tz data on. |
Результат | array | An offset hash. |
public static getOffsetsFromSyncTZ ( $data ) : array | ||
Результат | array | Hash of offset information |
public static getSyncTZFromOffsets ( array $offsets ) : string | ||
$offsets | array | A TZ offset hash |
Результат | string | A base64_encoded MAPI Timezone structure suitable for transmitting via wbxml. |
public getTimezone ( array | string $offsets, string $expectedTimezone = null ) : string | ||
$offsets | array | string | The timezone to check. Either an array of offsets or an activesynz tz blob. |
$expectedTimezone | string | The expected timezone. If not empty, and present in the results, will return. |
Результат | string | The timezone identifier. |