Public Member Functions | |
__construct ($y=0, $mt=0, $d=0, $h=0, $m=0, $s=0) | |
ODate ($y=0, $mt=0, $d=0, $h=0, $m=0, $s=0) | |
add ($date) | |
inc ($y, $mt, $d, $h, $m, $s) | |
setDate ($y, $m, $d) | |
setTime ($y, $m, $d) | |
addYears ($y) | |
addMonths ($m) | |
addDays ($d) | |
addHours ($h) | |
addMinutes ($m) | |
addSeconds ($s) | |
isBissextile () | |
numberOfMonthDays () | |
setNow () | |
cleanup () | |
compare ($date) | |
toNumericString () | |
toString ($format="%04d-%02d-%02d %02d:%02d:%02d") | |
getYear () | |
getMonth () | |
getDay () | |
getHours () | |
getMinutes () | |
getSeconds () | |
setYear ($y) | |
setMonth ($m) | |
setDay ($d) | |
setHours ($h) | |
setMinutes ($m) | |
setSeconds ($s) | |
Public Attributes | |
$_year = 0 | |
$_month = 0 | |
$_day = 0 | |
$_hours = 0 | |
$_minutes = 0 | |
$_seconds = 0 |
Note: -----
ODate::toString() can take a sprintf() format string as first parameter.
Definition at line 47 of file ODate.php.
|
ODate constructor.
|
|
ODate constructor. This constructor is for php v4.4 compliance.
Definition at line 68 of file ODate.php. References __construct(), setDay(), setHours(), setMinutes(), setMonth(), setSeconds(), and setYear(). Referenced by __construct(). |
|
Add a date to current date. Definition at line 98 of file ODate.php. Referenced by add(). |
|
Add some days to this date.
Definition at line 185 of file ODate.php. References $d, addDays(), and numberOfMonthDays(). |
|
Add some hours to this date.
Definition at line 202 of file ODate.php. References addHours(). Referenced by addHours(), and inc(). |
|
Add minutes to this date.
Definition at line 216 of file ODate.php. References addMinutes(). Referenced by addMinutes(), and inc(). |
|
Add some months to this date.
Definition at line 171 of file ODate.php. References addMonths(). Referenced by addMonths(), and inc(). |
|
Add seconds to this date.
Definition at line 230 of file ODate.php. References $s, and addSeconds(). Referenced by addSeconds(), and inc(). |
|
Add some years to this date.
Definition at line 161 of file ODate.php. References addYears(). Referenced by addYears(), and inc(). |
|
Ensure that date is correct. Definition at line 283 of file ODate.php. Referenced by toString(). |
|
Compare with another date, return < 0 if less, == 0 if equals, > 0 if greater.
Definition at line 296 of file ODate.php. References compare(). Referenced by compare(). |
|
Retrieve day.
|
|
Retrieve hour.
|
|
Retrieve minutes.
|
|
Retrieve month.
|
|
Retrieve seconds.
|
|
Retrieve year.
|
|
Add values to this date.
Definition at line 118 of file ODate.php. References addDays(), addHours(), addMinutes(), addMonths(), addSeconds(), addYears(), and inc(). |
|
Return true if bissextile year.
Definition at line 244 of file ODate.php. Referenced by numberOfMonthDays(). |
|
Get the number of days in current month
Definition at line 257 of file ODate.php. References isBissextile(). Referenced by addDays(). |
|
Set date part.
Definition at line 135 of file ODate.php. References setDate(), setDay(), setMonth(), and setYear(). Referenced by setDate(). |
|
Set day.
Definition at line 414 of file ODate.php. Referenced by __construct(), setDate(), setDay(), and setNow(). |
|
Set hours.
Definition at line 423 of file ODate.php. References setHours(). Referenced by __construct(), setHours(), setNow(), and setTime(). |
|
Set minutes.
Definition at line 432 of file ODate.php. References setMinutes(). Referenced by __construct(), setMinutes(), setNow(), and setTime(). |
|
Set month.
Definition at line 405 of file ODate.php. References setMonth(). Referenced by __construct(), setDate(), setMonth(), and setNow(). |
|
Set now time values to this object. Definition at line 269 of file ODate.php. References $d, setDay(), setHours(), setMinutes(), setMonth(), setSeconds(), and setYear(). |
|
Set seconds.
Definition at line 441 of file ODate.php. References $s, and setSeconds(). Referenced by __construct(), setNow(), setSeconds(), and setTime(). |
|
Set time part.
Definition at line 149 of file ODate.php. References setHours(), setMinutes(), setSeconds(), and setTime(). Referenced by setTime(). |
|
Set year.
Definition at line 396 of file ODate.php. References setYear(). Referenced by __construct(), setDate(), setNow(), and setYear(). |
|
Return a concatenation of date fields (numeric date).
|
|
Simple date format.
Definition at line 321 of file ODate.php. References cleanup(), and toString(). Referenced by toString(). |
|
|
|
|
|
|
|
|
|
|
|
|