|
IntlDateFormatter::setTimeZonedatefmt_set_timezoneSets formatterʼs timezone DescriptionObject oriented style
public
boolean
IntlDateFormatter::setTimeZone
( mixed
$zone
)Procedural style
boolean
datefmt_set_timezone
( mixed
$zone
)Sets the timezone that will be used when formatting dates or times with this object. Parameters
Return Values
Returns Examples
Example #1 IntlDateFormatter::setTimeZone examples
<?phpThe 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
|