|
IntlDateFormatter::getTimeZonedatefmt_get_timezoneGet formatterʼs timezone BeschreibungObjektorientierter Stil
public IntlTimeZone IntlDateFormatter::getTimeZone
( void
)
Prozeduraler Stil
IntlTimeZone
datefmt_get_timezone
( void
)
Returns an IntlTimeZone object representing the timezone that will be used by this object to format dates and times. When formatting IntlCalendar and DateTime objects with this IntlDateFormatter, the timezone used will be the one returned by this method, not the one associated with the objects being formatted. Parameter-ListeDiese Funktion hat keine Parameter. Rückgabewerte
The associated IntlTimeZone
objectIm Fehlerfall wird Beispiele
Beispiel #1 IntlDateFormatter::getTimeZone examples
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
object(IntlTimeZone)#4 (4) {
["valid"]=>
bool(true)
["id"]=>
string(13) "Europe/Madrid"
["rawOffset"]=>
int(3600000)
["currentOffset"]=>
int(7200000)
}
Spain Time
Europe/Lisbon
Europe/Lisbon
Siehe auch
|