|
IntlDateFormatter::setTimeZonedatefmt_set_timezoneSets formatterʼs timezone DescriptionObject-oriented style
public bool IntlDateFormatter::setTimeZone(IntlTimeZoneDateTimeZonestringnull
$timezone )Procedural style bool datefmt_set_timezone(IntlDateFormatter
$formatter , IntlTimeZoneDateTimeZonestringnull $timezone )Sets the timezone used for the IntlDateFormatter. object. Parameters
Return Values
Returns Changelog
Examples
Example #1 IntlDateFormatter::setTimeZone examples
The above example will output: NULL Europe/Amsterdam IntlTimeZone Europe/Lisbon DateTimeZone Europe/Paris String Europe/Rome IntlTimeZone Object ( [valid] => 1 [id] => GMT+00:30 [rawOffset] => 1800000 [currentOffset] => 1800000 ) See Also
|