Symfony\Component\Intl\DateFormatter\DateFormat\TimeZoneTransformer::getEtcTimeZoneId
Get an Etc/GMT timezone identifier for the specified timezone
The PHP documentation for timezones states to not use the 'Other' time zones because them exists "for backwards compatibility". However all Etc/GMT time zones are in the tz database 'etcetera' file, which indicates they are not deprecated (neither are old names). Only GMT, Etc/Universal, Etc/Zulu, Etc/Greenwich, Etc/GMT-0, Etc/GMT+0 and Etc/GMT0 are old names and are linked to Etc/GMT or Etc/UTC.
Signature
public function getEtcTimeZoneId(string
$formattedTimeZone )
Parameters
$formattedTimeZone
— string- A GMT timezone string (GMT-03:00, e.g.)
Returns
- string
- A timezone identifier
Errors/Exceptions
-
NotImplementedException
- When the GMT time zone have minutes offset different than zero
-
InvalidArgumentException
- When the value can not be matched with pattern