Public Member Functions | |
| __construct ($date, $time="") | |
| formatDate ($formatString) | |
| formatTime ($forCalendar=false, $time='') | |
| getDay () | |
| getHour () | |
| getMinute () | |
| getMonth () | |
| getMysqlFormatDate () | |
| getMysqlFormatTime () | |
| getTimestamp () | |
| getYear () | |
Static Public Member Functions | |
| static | currentDateMysql () |
| Formats the current date for mysql. | |
| static | formatTimeAgo ($timestamp) |
| Format a timestamp as a pretty string. | |
| static | quickFormatDate ($date, $formatString, $addDays='') |
| INSERT BRIEF DESCRIPTION HERE. | |
| static | quickFormatTime ($time, $forCalender=false) |
| INSERT BRIEF DESCRIPTION HERE. | |
INSERT FULL DESCRIPTION HERE
Definition at line 13 of file DateParser.php5.
| DateParser::__construct | ( | $ | date, | |
| $ | time = "" | |||
| ) |
Initialize a DateParser using a mysql date.
Definition at line 27 of file DateParser.php5.
| static DateParser::currentDateMysql | ( | ) | [static] |
Formats the current date for mysql.
Definition at line 69 of file DateParser.php5.
| DateParser::formatDate | ( | $ | formatString | ) |
Formats this date according to the format string, using the date() function.
Definition at line 133 of file DateParser.php5.
| DateParser::formatTime | ( | $ | forCalendar = false, |
|
| $ | time = '' | |||
| ) |
Formats this time as either army time or 12 hour digital notation
Definition at line 140 of file DateParser.php5.
| static DateParser::formatTimeAgo | ( | $ | timestamp | ) | [static] |
Format a timestamp as a pretty string.
| $timestamp | [UNIX timestamp]: The timestamp |
Definition at line 101 of file DateParser.php5.
Referenced by TKCSERDClassicReview::layoutReviewBox().
| DateParser::getDay | ( | ) |
Return the day
Definition at line 168 of file DateParser.php5.
| DateParser::getHour | ( | ) |
Return the hour
Definition at line 175 of file DateParser.php5.
| DateParser::getMinute | ( | ) |
Return the minute
Definition at line 182 of file DateParser.php5.
| DateParser::getMonth | ( | ) |
Return the month
Definition at line 161 of file DateParser.php5.
| DateParser::getMysqlFormatDate | ( | ) |
Return the date in mysql format
Definition at line 196 of file DateParser.php5.
| DateParser::getMysqlFormatTime | ( | ) |
Return the time in mysql format
Definition at line 203 of file DateParser.php5.
| DateParser::getTimestamp | ( | ) |
Return the timestamp
Definition at line 189 of file DateParser.php5.
| DateParser::getYear | ( | ) |
Return the year
Definition at line 154 of file DateParser.php5.
| static DateParser::quickFormatDate | ( | $ | date, | |
| $ | formatString, | |||
| $ | addDays = '' | |||
| ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $date | [TYPE]: DESCRIPTION | |
| $formatString | [TYPE]: DESCRIPTION | |
| $addDays | [TYPE]: DESCRIPTION |
Definition at line 50 of file DateParser.php5.
| static DateParser::quickFormatTime | ( | $ | time, | |
| $ | forCalender = false | |||
| ) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
| $time | [TYPE]: DESCRIPTION | |
| $forCalender | [TYPE]: DESCRIPTION |
Definition at line 83 of file DateParser.php5.
1.5.6