DateTime
class DateTime extends DateTimeImmutable
DateTime.
Methods
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
at line 36
DateTime
modifyClone(string $modify = '')
deprecated
deprecated
No description
at line 44
string
__toString()
No description
at line 53
__destruct()
No description
at line 62
add($interval)
No description
at line 68
modify($modify)
No description
at line 74
setDate($year, $month, $day)
No description
at line 80
setISODate($year, $week, $day = 1)
No description
at line 86
setTime($hour, $minute, $second = 0, $micro = 0)
No description
at line 92
setTimestamp($unixtimestamp)
No description
at line 98
setTimezone($timezone)
No description
at line 104
sub($interval)
No description
Traits
Better OOP experience.