return self::$timezones;
}
+
+ static function toRegion($tz)
+ {
+ return explode('/', $tz)[0];
+ }
+
+ static function toArea($tz)
+ {
+ return explode('/', $tz)[1];
+ }
static function toTimeOffset($dt, $tz)
{
$ar = explode('/', $tz);
return $ar[0] . '/' . self::toDisplayArea($dt, $tz);
}
-
- static function toRegion($tz)
- {
- return explode('/', $tz)[0];
- }
-
- static function toArea($tz)
- {
- return explode('/', $tz)[1];
- }
}
\ No newline at end of file