DateTime::getTimezoneDateTimeImmutable::getTimezoneDateTimeInterface::getTimezonedate_timezone_getReturn time zone relative to given DateTime BeschreibungObjektorientierter Stil
public DateTimeZone DateTime::getTimezone
( void
)
public DateTimeZone DateTimeImmutable::getTimezone
( void
)
public DateTimeZone DateTimeInterface::getTimezone
( void
)
Prozeduraler Stil
DateTimeZone date_timezone_get
( DateTimeInterface
$object
)Return time zone relative to given DateTime. Parameter-Liste
Rückgabewerte
Returns a DateTimeZone object on success
Im Fehlerfall wird BeispieleBeispiel #1 DateTime::getTimezone example Objektorientierter Stil
<?phpProzeduraler Stil
<?phpDie obigen Bespiele erzeugen folgende Ausgabe: Europe/London Siehe auch
|