Methods | ||
---|---|---|
public
|
format(string $format): string
|
# |
public
|
getTimezone(): DateTimeZone|false
|
# |
public
|
getOffset(): int
|
# |
public
|
getTimestamp(): int|false
|
# |
public
|
getMicrosecond(): int
|
# |
public
|
diff(DateTimeInterface $targetObject, bool $absolute = false): DateInterval|false
|
# |
public
|
__wakeup(): void
|
# |
public
|
__serialize(): array
|
# |
public
|
__unserialize(array $data): void
|
# |
Constants | ||
---|---|---|
public
|
ATOM = DATE_ATOM
|
# |
public
|
COOKIE = DATE_COOKIE
|
# |
public
|
ISO8601 = DATE_ISO8601
|
# |
public
|
ISO8601_EXPANDED = DATE_ISO8601_EXPANDED
|
# |
public
|
RFC822 = DATE_RFC822
|
# |
public
|
RFC850 = DATE_RFC850
|
# |
public
|
RFC1036 = DATE_RFC1036
|
# |
public
|
RFC1123 = DATE_RFC1123
|
# |
public
|
RFC7231 = DATE_RFC7231
|
# |
public
|
RFC2822 = DATE_RFC2822
|
# |
public
|
RFC3339 = DATE_RFC3339
|
# |
public
|
RFC3339_EXTENDED = DATE_RFC3339_EXTENDED
|
# |
public
|
RSS = DATE_RSS
|
# |
public
|
W3C = DATE_W3C
|
# |