Pluf_Date Class Reference

List of all members.

Static Public Member Functions

static gmDateToString ($gmdate, $format='%Y-%m-%d%H:%M:%S')
static gmDateToGmString ($gmdate, $format='c')
static dayCompare ($date1, $date2=null)


Member Function Documentation

static Pluf_Date::gmDateToString ( gmdate,
format = '%Y-%m-%d %H:%M:%S' 
) [static]

Get a GM Date in the format YYYY-MM-DD HH:MM:SS and returns a string with the given format in the current timezone.

Parameters:
string GMDate
string Format to be given to strftime ('Y-m-d H:M:S')
Returns:
string Formated GMDate into the local time

static Pluf_Date::gmDateToGmString ( gmdate,
format = 'c' 
) [static]

Get a GM Date in the format YYYY-MM-DD HH:MM:SS and returns a string with the given format in GMT.

Parameters:
string GMDate
string Format to be given to date ('c')
Returns:
string Formated GMDate into GMT

static Pluf_Date::dayCompare ( date1,
date2 = null 
) [static]

Day compare.

Compare if the first date is before or after the second date. Returns: 0 if the days are the same. 1 if the first date is before the second. -1 if the first date is after the second.

Parameters:
string YYYY-MM-DD date.
string YYYY-MM-DD date (today local time).
Returns:
int


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

Generated on Wed Feb 3 15:44:51 2010 for Pluf by  doxygen