Public Member Functions | |
__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 | |
$iYear | |
$iMonth | |
$iDay | |
plugin_date classe pour gerer la date
Definition at line 23 of file plugin_date.php.
__construct | ( | $sDate = null , |
|
$sFormat = 'Y-m-d' |
|||
) |
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_date.php.
addDay | ( | $iNb | ) |
calcul date j+ public
int | $iNb | calcul date + $iNb jour |
Definition at line 197 of file plugin_date.php.
addMonth | ( | $iNb | ) |
calcul date m+ public
int | $iNb | calcul date + $iNb mois |
Definition at line 207 of file plugin_date.php.
addYear | ( | $iNb | ) |
calcul date a+ public
int | $iNb | calcul date + $iNb a |
Definition at line 217 of file plugin_date.php.
getDay | ( | $sFormat = 'DD' | ) |
public
string | $sFormat | definit le format a utiliser pour le retour (DD par defaut, ou D) |
Definition at line 165 of file plugin_date.php.
getMkTime | ( | ) |
public
Definition at line 258 of file plugin_date.php.
getMonth | ( | $sFormat = 'MM' | ) |
public
string | $sFormat | definit le format a utiliser pour le retour (MM par defaut, ou M) |
Definition at line 115 of file plugin_date.php.
getNumberWeek | ( | ) |
public
Definition at line 186 of file plugin_date.php.
getStringDay | ( | $sFormat = 'DD' | ) |
public
Definition at line 146 of file plugin_date.php.
getStringMonth | ( | $sFormat = 'MM' | ) |
public
Definition at line 129 of file plugin_date.php.
getWeekDay | ( | ) |
public
Definition at line 179 of file plugin_date.php.
getYear | ( | $sFormat = 'YYYY' | ) |
public
string | $sFormat | definit le format a utiliser pour le retour (YYYY par defaut ou YY) |
Definition at line 100 of file plugin_date.php.
isBank | ( | ) |
public
Definition at line 267 of file plugin_date.php.
isToday | ( | ) |
public
Definition at line 372 of file plugin_date.php.
isValid | ( | ) |
public
Definition at line 341 of file plugin_date.php.
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 49 of file plugin_date.php.
removeDay | ( | $iNb | ) |
calcul date j- public
int | $iNb | calcul date - $iNb jour |
Definition at line 228 of file plugin_date.php.
removeMonth | ( | $iNb | ) |
calcul date m- public
int | $iNb | calcul date - $iNb mois |
Definition at line 238 of file plugin_date.php.
removeYear | ( | $iNb | ) |
calcul date a- public
int | $iNb | calcul date - $iNb a |
Definition at line 248 of file plugin_date.php.
reset | ( | ) |
setDay | ( | $iDay | ) |
public
integer | $iDay |
Definition at line 91 of file plugin_date.php.
setMonth | ( | $iMonth | ) |
public
integer | $iMonth |
Definition at line 84 of file plugin_date.php.
setYear | ( | $iYear | ) |
public
integer | $iYear |
Definition at line 77 of file plugin_date.php.
toString | ( | $sFormat = 'Y-m-d' | ) |
public
string | format voulu en retour (appel la fonction date() ) |
Definition at line 364 of file plugin_date.php.