Class

eZDate

class eZDate

Properties

$Locale
$Date
$IsValid

Methods

__construct(int|bool $date = false)

Creates a new date object with default locale, if $date is not supplied the current date is used.

attributes()

hasAttribute($name)

attribute($name)

isValid()

setLocale($locale)

locale()

timeStamp()

setTimeStamp($stamp)

setYear($year)

setMonth($month)

setDay($day)

year()

month()

day()

setMDY($month, $day, $year)

adjustDate($month, $day, $year)

isGreaterThan($date, $equal = false)

isEqualTo($date)

duplicate()

toString($short = false)

Details

at line 63
public __construct(int|bool $date = false)

Creates a new date object with default locale, if $date is not supplied the current date is used.

Parameters

int|bool $date

at line 79
public attributes()

at line 88
public hasAttribute($name)

Parameters

$name

at line 93
public attribute($name)

Parameters

$name

at line 113
public isValid()

at line 121
public setLocale($locale)

Parameters

$locale

at line 129
public locale()

at line 139
public timeStamp()

at line 144
public setTimeStamp($stamp)

Parameters

$stamp

at line 153
public setYear($year)

Parameters

$year

at line 162
public setMonth($month)

Parameters

$month

at line 171
public setDay($day)

Parameters

$day

at line 180
public year()

at line 188
public month()

at line 196
public day()

at line 205
public setMDY($month, $day, $year)

Parameters

$month
$day
$year

at line 220
public adjustDate($month, $day, $year)

Parameters

$month
$day
$year

at line 232
public isGreaterThan($date, $equal = false)

Parameters

$date
$equal

at line 255
public isEqualTo($date)

Parameters

$date

at line 290
public duplicate()

at line 300
public toString($short = false)

Parameters

$short