Trait Shared
Direct Known Users
Methods summary
abstract public
integer
|
|
abstract public
DateTimeZone
|
|
abstract public
DateTime|DateTimeImmutable
|
|
abstract public
DateTime|DateTimeImmutable
|
|
public static
|
|
public static
|
|
public static
|
|
public
|
#
__construct( string $time = 'now', DateTimeZone|string|null $timezone = null )
If the time zone is specified as a string a \DateTimeZone instance is created and used instead. |
public
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
#
format( $format )
If the instance represents an empty date and the format is DATE or DB, an empty date is returned, respectively "0000-00-00" and "0000-00-00 00:00:00". Note that the time information is discarded for DB. This only apply to DATE and DB formats. For instance RSS will return the following string: "Wed, 30 Nov -0001 00:00:00 +0000". |
public
|
|
public
|
Magic methods summary
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
Properties summary
Magic properties
public read-only
integer
|
$year
Year. |
public read-only
integer
|
$month
Month of the year. |
public read-only
integer
|
$day
Day of the month. |
public read-only
integer
|
$hour
Hour of the day. |
public read-only
integer
|
$minute
Minute of the hour. |
public read-only
integer
|
$second
Second of the minute. |
public read-only
boolean
|
$is_empty
|
public read-only
string
|
$as_iso8601
The instance formatted according to ISO8601. |