The date class is used to handle all kind of date and time related operations.
As soon as the most installations will run on PHP >= 5.3.0, this class will be wrapper to phps' DateTime class. Up till then, the class provides a few ways to handle date and convert them to a long value not being limited by the 32 bit time() boundaries (> 1970 && < 2038). Use this class only in cases the other way won't work, so e.g. for birthdays.
Located in /system/class_date.php (line 20)
Generates a long-timestamp of the current time
Creates an instance of the class_date an initialises it with the current date.
Sets the current time based on the array of params passed.
The fieldname is the prefix of the form-elements. The timestamp is generated out of the following form-elements, so element of the params-array: fieldname_year, fieldname_month, fieldname_day, fieldname_hour, fieldname_minute, fieldname_second If a single field is not found, 00 is inserted instead.
Get the day part
Get the hour part
Get the min part
Get the month part
Get the sec part
Get the year part
Get the timstamp as a long value
Swap the day part
Swap the hour part
Swap the minutes part
Swap the month part
Swap the seconds part
Swap the year part
Set the current timestamp
Allows to init the current class with an 32Bit int value representing the seconds since 1970.
PHPs' time() returns 32Bit ints, too.
Returns the string-based version of the long-value currently maintained.
Documentation generated on Mon, 12 Apr 2010 21:20:00 +0200 by phpDocumentor 1.4.3