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

static DateTime
from($time)

DateTime object factory.

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.

Parameters

$time

Return Value

DateTime

at line 65
string __toString()

No description

Return Value

string

at line 75
DateTime modifyClone($modify = '')

No description

Parameters

$modify

Return Value

DateTime

at line 86
DateTime setTimestamp($timestamp)

No description

Parameters

$timestamp

Return Value

DateTime

at line 97
int|string getTimestamp()

No description

Return Value

int|string

at line 111
static DateTime|false createFromFormat($format, $time, $timezone = NULL)

Returns new DateTime object formatted according to the specified format.

Parameters

$format
$time
$timezone

Return Value

DateTime|false