Search Results
Return Values ¶ Returns a numerically indexed array of transition arrays on success, or false on failure. DateTimeZone objects wrapping type 1 (UTC offsets) and type 2 (abbreviations) do not contain any transitions, and calling this method on them will return false. If timestampBegin is given, the first entry in the returned array will contain a transition element at the time of timestampBegin.
- Construct
Creates a new DateTimeZone object. A DateTimeZone object...
- Listidentifiers
Returns a numerically indexed array containing all defined...
- Getname
Return Values ¶ Depending on zone type, UTC offset (type 1),...
- Getlocation
Returns location information for a timezone, including...
- Construct
Syntax The two functions below are equivalent and any of the functions can be used as shown in the example above. Procedural style: timezone_transitions_get (object, timestamp_start, timestamp_end) Object oriented style: DateTimeZone::getTransitions (timestamp_start, timestamp_end)
DateTimeZone::getTransitions timezone_transitions_get Returns all transitions for the timezone
The PHP DateTimeZone::getTransitions () method returns all transitions for the timezone. The timezone_transitions_get () function is an alias of this method.
Return Values Returns a numerically indexed array of transition arrays on success, or false on failure. DateTimeZone objects wrapping type 1 (UTC offsets) and type 2 (abbreviations) do not contain any transitions, and calling this method on them will return false.
(PHP 5 >= 5.2.0, PHP 7) Returns all transitions for the timezone public array DateTimeZone::get
DateTimeZone::getTransitions -- timezone_transitions_get — Returns all transitions for the timezone
