|
IntlDateFormatter::setTimeZoneIddatefmt_set_timezone_idSets the time zone to use Warning
This function was DEPRECATED in PHP 5.5.0, and REMOVED in PHP 7.0.0. Alternatives to this function include:
DescriptionObject oriented style
public bool IntlDateFormatter::setTimeZoneId
( string
$zone
)Procedural style
bool datefmt_set_timezone_id
( IntlDateFormatter
$fmt
, string $zone
)Sets the time zone to use. Parameters
Return Values
Returns Changelog
ExamplesExample #1 datefmt_set_timezone_id example
<?php Example #2 OO example
<?php The above example will output: timezone_id of the formatter is : America/Los_Angeles Now timezone_id of the formatter is : CN See Also
|