class DateTime extends DateTimeImmutable

DateTime.

Methods

__construct(string|int $time = 'now', DateTimeZone $timezone = null)

No description

modifyClone(string $modify = '') deprecated

No description

string
__toString()

No description

__destruct()

No description

add($interval)

No description

modify($modify)

No description

setDate($year, $month, $day)

No description

setISODate($year, $week, $day = 1)

No description

setTime($hour, $minute, $second = 0, $micro = 0)

No description

setTimestamp($unixtimestamp)

No description

setTimezone($timezone)

No description

sub($interval)

No description

Details

at line 23
__construct(string|int $time = 'now', DateTimeZone $timezone = null)

No description

Parameters

string|int $time
DateTimeZone $timezone

at line 36
DateTime modifyClone(string $modify = '') deprecated

deprecated use modify()

No description

Parameters

string $modify

Return Value

DateTime

at line 44
string __toString()

No description

Return Value

string

at line 53
__destruct()

No description

at line 62
add($interval)

No description

Parameters

$interval

at line 68
modify($modify)

No description

Parameters

$modify

at line 74
setDate($year, $month, $day)

No description

Parameters

$year
$month
$day

at line 80
setISODate($year, $week, $day = 1)

No description

Parameters

$year
$week
$day

at line 86
setTime($hour, $minute, $second = 0, $micro = 0)

No description

Parameters

$hour
$minute
$second
$micro

at line 92
setTimestamp($unixtimestamp)

No description

Parameters

$unixtimestamp

at line 98
setTimezone($timezone)

No description

Parameters

$timezone

at line 104
sub($interval)

No description

Parameters

$interval

Traits

Better OOP experience.