php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
DateTimeInterface Interface Reference
Inheritance diagram for DateTimeInterface:
DateTime DateTimeImmutable

Public Member Functions

 format (string $format)
 
 getTimezone ()
 
 getOffset ()
 
 getTimestamp ()
 
 getMicrosecond ()
 
 diff (DateTimeInterface $targetObject, bool $absolute=false)
 
 __wakeup ()
 
 __serialize ()
 
 __unserialize (array $data)
 

Data Fields

const string ATOM = DATE_ATOM
 
const string COOKIE = DATE_COOKIE
 
const string ISO8601 = DATE_ISO8601
 
const string ISO8601_EXPANDED = DATE_ISO8601_EXPANDED
 
const string RFC822 = DATE_RFC822
 
const string RFC850 = DATE_RFC850
 
const string RFC1036 = DATE_RFC1036
 
const string RFC1123 = DATE_RFC1123
 
const string RFC7231 = DATE_RFC7231
 
const string RFC2822 = DATE_RFC2822
 
const string RFC3339 = DATE_RFC3339
 
const string RFC3339_EXTENDED = DATE_RFC3339_EXTENDED
 
const string RSS = DATE_RSS
 
const string W3C = DATE_W3C
 

Detailed Description

Definition at line 288 of file php_date.stub.php.

Member Function Documentation

◆ __serialize()

DateTimeInterface::__serialize ( )

Implemented in DateTime, and DateTimeImmutable.

◆ __unserialize()

DateTimeInterface::__unserialize ( array $data)

Implemented in DateTime, and DateTimeImmutable.

◆ __wakeup()

DateTimeInterface::__wakeup ( )

@tentative-return-type

Implemented in DateTime, and DateTimeImmutable.

◆ diff()

DateTimeInterface::diff ( DateTimeInterface $targetObject,
bool $absolute = false )

@tentative-return-type

Implemented in DateTime, and DateTimeImmutable.

◆ format()

DateTimeInterface::format ( string $format)

@tentative-return-type

Implemented in DateTime, and DateTimeImmutable.

◆ getMicrosecond()

DateTimeInterface::getMicrosecond ( )

Implemented in DateTime, and DateTimeImmutable.

◆ getOffset()

DateTimeInterface::getOffset ( )

@tentative-return-type

Implemented in DateTime, and DateTimeImmutable.

◆ getTimestamp()

DateTimeInterface::getTimestamp ( )

@tentative-return-type

Implemented in DateTime, and DateTimeImmutable.

◆ getTimezone()

DateTimeInterface::getTimezone ( )

@tentative-return-type

Implemented in DateTime, and DateTimeImmutable.

Field Documentation

◆ ATOM

const string DateTimeInterface::ATOM = DATE_ATOM

Definition at line 291 of file php_date.stub.php.

◆ COOKIE

const string DateTimeInterface::COOKIE = DATE_COOKIE

Definition at line 293 of file php_date.stub.php.

◆ ISO8601

const string DateTimeInterface::ISO8601 = DATE_ISO8601

Definition at line 295 of file php_date.stub.php.

◆ ISO8601_EXPANDED

const string DateTimeInterface::ISO8601_EXPANDED = DATE_ISO8601_EXPANDED

Definition at line 297 of file php_date.stub.php.

◆ RFC1036

const string DateTimeInterface::RFC1036 = DATE_RFC1036

Definition at line 303 of file php_date.stub.php.

◆ RFC1123

const string DateTimeInterface::RFC1123 = DATE_RFC1123

Definition at line 305 of file php_date.stub.php.

◆ RFC2822

const string DateTimeInterface::RFC2822 = DATE_RFC2822

Definition at line 309 of file php_date.stub.php.

◆ RFC3339

const string DateTimeInterface::RFC3339 = DATE_RFC3339

Definition at line 311 of file php_date.stub.php.

◆ RFC3339_EXTENDED

const string DateTimeInterface::RFC3339_EXTENDED = DATE_RFC3339_EXTENDED

Definition at line 313 of file php_date.stub.php.

◆ RFC7231

const string DateTimeInterface::RFC7231 = DATE_RFC7231

Definition at line 307 of file php_date.stub.php.

◆ RFC822

const string DateTimeInterface::RFC822 = DATE_RFC822

Definition at line 299 of file php_date.stub.php.

◆ RFC850

const string DateTimeInterface::RFC850 = DATE_RFC850

Definition at line 301 of file php_date.stub.php.

◆ RSS

const string DateTimeInterface::RSS = DATE_RSS

Definition at line 315 of file php_date.stub.php.

◆ W3C

const string DateTimeInterface::W3C = DATE_W3C

Definition at line 317 of file php_date.stub.php.


The documentation for this interface was generated from the following file: