DateTimeImmutable::sub
DateTime::diff
Datum/Uhrzeit
PHP Manual
The DateTimeInterface interface
(PHP 5 >= 5.5.0)
Einführung
Klassenbeschreibung
DateTimeInterface
{
/* Methoden */
public
DateInterval
diff
(
DateTimeInterface
$datetime2
[,
bool
$absolute
= false
] )
public
string
format
(
string
$format
)
public
int
getOffset
(
void
)
public
int
getTimestamp
(
void
)
public
DateTimeZone
getTimezone
(
void
)
public
__wakeup
(
void
)
}
Inhaltsverzeichnis
DateTime::diff
— Returns the difference between two DateTime objects
DateTime::format
— Returns date formatted according to given format
DateTime::getOffset
— Returns the timezone offset
DateTime::getTimestamp
— Gets the Unix timestamp
DateTime::getTimezone
— Return time zone relative to given DateTime
DateTime::__wakeup
— The __wakeup handler
DateTimeImmutable::sub
DateTime::diff
Datum/Uhrzeit
PHP Manual