DateTimeInterface interface
DateTimeInterface
Constants #
- ATOM
- -
- COOKIE
- -
- ISO8601
- -
- ISO8601_EXPANDED
- -
- RFC822
- -
- RFC850
- -
- RFC1036
- -
- RFC1123
- -
- RFC7231
- -
- RFC2822
- -
- RFC3339
- -
- RFC3339_EXTENDED
- -
- RSS
- -
- W3C
- -
Methods #
- __serialize()
- -
- __unserialize()
- -
- __wakeup()
- -
- diff()
- -
- format()
- -
- getMicrosecond()
- -
- getOffset()
- -
- getTimestamp()
- -
- getTimezone()
- -
__serialize()
public function __serialize(): array
Returns
array
__unserialize()
public function __unserialize(array $data): void
Parameters
- array $data
Returns
void
__wakeup()
public function __wakeup()
diff()
public function diff(DateTimeInterface $targetObject, bool $absolute = false)
Parameters
- DateTimeInterface $targetObject
- bool $absolute
format()
public function format(string $format)
Parameters
- string $format
getMicrosecond()
public function getMicrosecond(): int
Returns
int
getOffset()
public function getOffset()
getTimestamp()
public function getTimestamp()
getTimezone()
public function getTimezone()