TimeZoneTransformer::getEtcTimeZoneId()

static string getEtcTimeZoneId(string $formattedTimeZone)

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.

Parameters

string $formattedTimeZone A GMT timezone string (GMT-03:00, e.g.)

Return Value

string A timezone identifier

Exceptions

NotImplementedException When the GMT time zone have minutes offset different than zero
InvalidArgumentException When the value can not be matched with pattern

See also

http://php.net/manual/en/timezones.others.php
http://www.twinsun.com/tz/tz-link.htm
doc_Symfony
2016-10-28 06:34:36
Comments
Leave a Comment

Please login to continue.