DateTime
class DateTime extends DateTime
DateTime.
Constants
MINUTE |
minute in seconds |
HOUR |
hour in seconds |
DAY |
day in seconds |
WEEK |
week in seconds |
MONTH |
average month in seconds |
YEAR |
average year in seconds |
Methods
string
__toString()
No description
modifyClone($modify = '')
No description
setTimestamp($timestamp)
No description
int|string
getTimestamp()
No description
static DateTime|false
createFromFormat($format, $time, $timezone = NULL)
Returns new DateTime object formatted according to the specified format.
Details
at line 44
static DateTime
from($time)
DateTime object factory.
at line 65
string
__toString()
No description
at line 75
DateTime
modifyClone($modify = '')
No description
at line 86
DateTime
setTimestamp($timestamp)
No description
at line 97
int|string
getTimestamp()
No description
at line 111
static DateTime|false
createFromFormat($format, $time, $timezone = NULL)
Returns new DateTime object formatted according to the specified format.