Skip to content

Sabre VObject TimeZoneUtil

Evert Pot edited this page Sep 1, 2014 · 3 revisions

Sabre\VObject\TimeZoneUtil

Time zone name translation

This file translates well-known time zone names into "Olson database" time zone names.

  • Class name: TimeZoneUtil
  • Namespace: Sabre\VObject

Properties

$map

public mixed $map = null
  • Visibility: public
  • This property is static.

$microsoftExchangeMap

public mixed $microsoftExchangeMap = array(0 => 'UTC', 31 => 'Africa/Casablanca', 2 => 'Europe/Lisbon', 1 => 'Europe/London', 4 => 'Europe/Berlin', 6 => 'Europe/Prague', 3 => 'Europe/Paris', 69 => 'Africa/Luanda', 7 => 'Europe/Athens', 5 => 'Europe/Bucharest', 49 => 'Africa/Cairo', 50 => 'Africa/Harare', 59 => 'Europe/Helsinki', 27 => 'Asia/Jerusalem', 26 => 'Asia/Baghdad', 74 => 'Asia/Kuwait', 51 => 'Europe/Moscow', 56 => 'Africa/Nairobi', 25 => 'Asia/Tehran', 24 => 'Asia/Muscat', 54 => 'Asia/Baku', 48 => 'Asia/Kabul', 58 => 'Asia/Yekaterinburg', 47 => 'Asia/Karachi', 23 => 'Asia/Calcutta', 62 => 'Asia/Kathmandu', 46 => 'Asia/Almaty', 71 => 'Asia/Dhaka', 66 => 'Asia/Colombo', 61 => 'Asia/Rangoon', 22 => 'Asia/Bangkok', 64 => 'Asia/Krasnoyarsk', 45 => 'Asia/Shanghai', 63 => 'Asia/Irkutsk', 21 => 'Asia/Singapore', 73 => 'Australia/Perth', 75 => 'Asia/Taipei', 20 => 'Asia/Tokyo', 72 => 'Asia/Seoul', 70 => 'Asia/Yakutsk', 19 => 'Australia/Adelaide', 44 => 'Australia/Darwin', 18 => 'Australia/Brisbane', 76 => 'Australia/Sydney', 43 => 'Pacific/Guam', 42 => 'Australia/Hobart', 68 => 'Asia/Vladivostok', 41 => 'Asia/Magadan', 17 => 'Pacific/Auckland', 40 => 'Pacific/Fiji', 67 => 'Pacific/Tongatapu', 29 => 'Atlantic/Azores', 53 => 'Atlantic/Cape_Verde', 30 => 'America/Noronha', 8 => 'America/Sao_Paulo', 32 => 'America/Argentina/Buenos_Aires', 60 => 'America/Godthab', 28 => 'America/St_Johns', 9 => 'America/Halifax', 33 => 'America/Caracas', 65 => 'America/Santiago', 35 => 'America/Bogota', 10 => 'America/New_York', 34 => 'America/Indiana/Indianapolis', 55 => 'America/Guatemala', 11 => 'America/Chicago', 37 => 'America/Mexico_City', 36 => 'America/Edmonton', 38 => 'America/Phoenix', 12 => 'America/Denver', 13 => 'America/Los_Angeles', 14 => 'America/Anchorage', 15 => 'Pacific/Honolulu', 16 => 'Pacific/Midway', 39 => 'Pacific/Kwajalein')

List of microsoft exchange timezone ids.

Source: http://msdn.microsoft.com/en-us/library/aa563018(loband).aspx

  • Visibility: public
  • This property is static.

Methods

getTimeZone

\Sabre\VObject\DateTimeZone Sabre\VObject\TimeZoneUtil::getTimeZone(string $tzid, \Sabre\VObject\Sabre\VObject\Component $vcalendar, $failIfUncertain)

This method will try to find out the correct timezone for an iCalendar date-time value.

You must pass the contents of the TZID parameter, as well as the full calendar.

If the lookup fails, this method will return the default PHP timezone (as configured using date_default_timezone_set, or the date.timezone ini setting).

Alternatively, if $failIfUncertain is set to true, it will throw an exception if we cannot accurately determine the timezone.

  • Visibility: public
  • This method is static.

Arguments

  • $tzid string
  • $vcalendar Sabre\VObject\Sabre\VObject\Component
  • $failIfUncertain mixed

loadTzMaps

mixed Sabre\VObject\TimeZoneUtil::loadTzMaps()

This method will load in all the tz mapping information, if it's not yet done.

  • Visibility: public
  • This method is static.
Clone this wiki locally