Static Public Member Functions | |
| static | gmDateToString ($gmdate, $format='%Y-%m-%d%H:%M:%S') |
| static | gmDateToGmString ($gmdate, $format='c') |
| static | dayCompare ($date1, $date2=null) |
| 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.
| string | GMDate | |
| string | Format to be given to strftime ('Y-m-d H:M:S') |
| 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.
| string | GMDate | |
| string | Format to be given to date ('c') |
| 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.
| string | YYYY-MM-DD date. | |
| string | YYYY-MM-DD date (today local time). |