Single date time value. This class provides some handy methods for working with timestamps and extracting data from them
Located in /environment/classes/datetimevalue/DateTimeValue.class.php (line 10)
Construct the DateTimeValue
Advance for specific time
This function will move interlan data to the beginning of day and return modified object.
It can be called as:
$beggining = DateTimeValueLib::now()->beginningOfDay()
This function will set hours, minutes and seconds to 23:59:59 and return this object.
If you wish to get end of this day simply type:
$end = DateTimeValueLib::now()->endOfDay()
Return formated datetime
Return days
Return hour
Return minute
Return numberic representation of month
Return seconds
Get timestamp
Return year
This function will return true if this day is today
This function will return true if this datetime is yesterday
Set day value
Set hour value
Set minutes value
Set month value
Set seconds
Set year value
Return atom formated time (W3C format)
Return iCalendar formated date and time
Return ISO8601 formated time
Return datetime formated in MySQL datetime format
Return RSS format
Documentation generated on Wed, 23 Jan 2008 01:58:34 +0000 by phpDocumentor 1.4.0