Inherited by spunQ_DateTime.
Public Member Functions | |
| __toString () | |
| Will convert this object to an ISO 8601 string. | |
| getTimestamp ($convertToUTC=false) | |
| Converts this object to a unix timestamp (seconds since 1970-01-01 GMT). | |
| setTimestamp ($timestamp) | |
| Implementing to be compatible with PHP 5.2. | |
| precedes (spunQ_DateAndTimeBase $other) | |
| Checks if this object represents an older time than reference. | |
| getDay () | |
| setDay ($day) | |
| getMonth () | |
| setMonth ($month) | |
| getYear () | |
| setYear ($year) | |
| getHour () | |
| setHour ($hour) | |
| getMinute () | |
| setMinute ($minute) | |
| getSecond () | |
| getSeconds () | |
| setSecond ($second) | |
| addSeconds ($seconds) | |
| addMinutes ($minutes) | |
| addHours ($hours) | |
| addDays ($days) | |
| addMonths ($months) | |
| addYears ($years) | |
| getLastDayOfMonth () | |
Definition at line 6 of file DateAndTimeBase.class.php.
| spunQ_DateAndTimeBase::__toString | ( | ) |
Will convert this object to an ISO 8601 string.
Definition at line 12 of file DateAndTimeBase.class.php.
| spunQ_DateAndTimeBase::getTimestamp | ( | $ | convertToUTC = false |
) |
Converts this object to a unix timestamp (seconds since 1970-01-01 GMT).
| $convertToUTC | If time is in system timezone, but needed in UTC. |
Definition at line 21 of file DateAndTimeBase.class.php.
| spunQ_DateAndTimeBase::precedes | ( | spunQ_DateAndTimeBase $ | other | ) |
Checks if this object represents an older time than reference.
| $other | The other datetime object to compare with. |
Definition at line 46 of file DateAndTimeBase.class.php.
| spunQ_DateAndTimeBase::setTimestamp | ( | $ | timestamp | ) |
Implementing to be compatible with PHP 5.2.
| $timestamp | The unix timestamp to set this object to. |
Definition at line 34 of file DateAndTimeBase.class.php.
1.5.9