Since it's impossible to know exactly which olson timezone name a
specific set of offsets represent (multiple timezone names may be
described by the same offsets for any given year) we allow passing an
expected timezone. If this matches one of the timezones that matches the
offsets, we return that. Otherwise, we attempt to get the full timezone
name from Horde_Date and if that fails, return the abbreviated timezone
name of the first timezone that matches the provided offsets.
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. |
Résultat | string | The timezone identifier. |