class DateTimeImplements: DateTimeInterface
Constants string ATOM string COOKIE string ISO8601 string ISO8601_EXPANDED string RFC1036 string RFC1123 string RFC2822 string RFC3339 string RFC3339_EXTENDED string RFC7231 string RFC822 string RFC850 string RSS string W3C
Methods public static __set_state ( array $array ) createFromFormat ( string $format, string $datetime, ?DateTimeZone $timezone = NULL ) createFromImmutable ( DateTimeImmutable $object ) createFromInterface ( DateTimeInterface $object ) getLastErrors ( ) public __construct ( string $datetime = 'now', ?DateTimeZone $timezone = NULL ) __serialize ( ) __unserialize ( array $data ) __wakeup ( ) add ( DateInterval $interval ) diff ( DateTimeInterface $targetObject, bool $absolute = false ) format ( string $format ) getOffset ( ) getTimestamp ( ) getTimezone ( ) modify ( string $modifier ) setDate ( int $year, int $month, int $day ) setISODate ( int $year, int $week, int $dayOfWeek = 1 ) setTime ( int $hour, int $minute, int $second = 0, int $microsecond = 0 ) setTimestamp ( int $timestamp ) setTimezone ( DateTimeZone $timezone ) sub ( DateInterval $interval )
|