spunQ_DateAndTimeBase Class Reference

Small date class for handling date & time values. More...

Inherited by spunQ_DateTime.

List of all members.

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 ()


Detailed Description

Small date class for handling date & time values.

Definition at line 6 of file DateAndTimeBase.class.php.


Member Function Documentation

spunQ_DateAndTimeBase::__toString (  ) 

Will convert this object to an ISO 8601 string.

Returns:
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).

Parameters:
$convertToUTC If time is in system timezone, but needed in UTC.
Returns:
string

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.

Parameters:
$other The other datetime object to compare with.
Returns:
boolean

Definition at line 46 of file DateAndTimeBase.class.php.

spunQ_DateAndTimeBase::setTimestamp ( timestamp  ) 

Implementing to be compatible with PHP 5.2.

Parameters:
$timestamp The unix timestamp to set this object to.
Returns:
spunQ_Date $this

Definition at line 34 of file DateAndTimeBase.class.php.


The documentation for this class was generated from the following file:

Generated on Fri Jul 1 11:12:39 2011 for spunQ3 by  doxygen 1.5.9