Public Member Functions | |
__construct ($sDate=null, $sFormat='Y-m-d h:i:s') | |
loadFromFormat ($sDate, $sFormat) | |
reset () | |
getHour () | |
getMinute () | |
getSecond () | |
setHour ($iHour) | |
setMinute ($iMinute) | |
setSecond ($iSecond) | |
toString ($sFormat='Y-m-d H:i:s') | |
getMkTime () | |
Public Member Functions inherited from plugin_date | |
__construct ($sDate=null, $sFormat='Y-m-d') | |
loadFromFormat ($sDate, $sFormat) | |
reset () | |
setYear ($iYear) | |
setMonth ($iMonth) | |
setDay ($iDay) | |
getYear ($sFormat='YYYY') | |
getMonth ($sFormat='MM') | |
getStringMonth ($sFormat='MM') | |
getStringDay ($sFormat='DD') | |
getDay ($sFormat='DD') | |
getWeekDay () | |
getNumberWeek () | |
addDay ($iNb) | |
addMonth ($iNb) | |
addYear ($iNb) | |
removeDay ($iNb) | |
removeMonth ($iNb) | |
removeYear ($iNb) | |
getMkTime () | |
isBank () | |
isValid () | |
toString ($sFormat='Y-m-d') | |
isToday () | |
Protected Attributes | |
$iHour | |
$iMinute | |
$iSecond | |
Protected Attributes inherited from plugin_date | |
$iYear | |
$iMonth | |
$iDay | |
plugin_datetime classe pour gerer la date
Definition at line 23 of file plugin_datetime.php.
__construct | ( | $sDate = null , |
|
$sFormat = 'Y-m-d h:i:s' |
|||
) |
constructeur public
string | $sDate | on leur passe une chaine contenant la date par exemple '2007-12-25' |
string | $sFormat | on definit leur format utilise, par exemple'Y-m-d' |
Definition at line 35 of file plugin_datetime.php.
getHour | ( | ) |
getMinute | ( | ) |
getMkTime | ( | ) |
public
Definition at line 137 of file plugin_datetime.php.
getSecond | ( | ) |
loadFromFormat | ( | $sDate, | |
$sFormat | |||
) |
public
string | $sDate | on leur passe une chaine contenant la date par exemple '2007-12-25' |
string | $sFormat | on definit leur format utilise, par exemple'Y-m-d' |
Definition at line 50 of file plugin_datetime.php.
reset | ( | ) |
public
Definition at line 69 of file plugin_datetime.php.
setHour | ( | $iHour | ) |
public
integer | $iHour |
Definition at line 106 of file plugin_datetime.php.
setMinute | ( | $iMinute | ) |
public
integer | $iMinute |
Definition at line 113 of file plugin_datetime.php.
setSecond | ( | $iSecond | ) |
public
integer | $iSecond |
Definition at line 120 of file plugin_datetime.php.
toString | ( | $sFormat = 'Y-m-d H:i:s' | ) |
public
string | format voulu en retour (appel la fonction date() ) |
Definition at line 129 of file plugin_datetime.php.