|
IntlDateFormatter::setTimeZonedatefmt_set_timezoneSets formatterʼs timezone BeschreibungObjektorientierter Stil
public
boolean
IntlDateFormatter::setTimeZone
( mixed
$zone
)Prozeduraler Stil
boolean
datefmt_set_timezone
( mixed
$zone
)Sets the timezone that will be used when formatting dates or times with this object. Parameter-Liste
Rückgabewerte
Returns Beispiele
Beispiel #1 IntlDateFormatter::setTimeZone examples
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
NULL
Europe/Amsterdam
IntlTimeZone
Europe/Lisbon
DateTimeZone
Europe/Paris
String
Europe/Rome
IntlTimeZone Object
(
[valid] => 1
[id] => GMT+00:30
[rawOffset] => 1800000
[currentOffset] => 1800000
)
Siehe auch
|