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
DateParser::__construct | ( | $ | date, | |
$ | time = "" | |||
) |
Initialize a DateParser using a mysql date.
static DateParser::currentDateMysql | ( | ) | [static] |
Formats the current date for mysql.
DateParser::formatDate | ( | $ | formatString | ) |
Formats this date according to the format string, using the date() function.
DateParser::formatTime | ( | $ | forCalendar = false , |
|
$ | time = '' | |||
) |
Formats this time as either army time or 12 hour digital notation
static DateParser::formatTimeAgo | ( | $ | timestamp | ) | [static] |
Format a timestamp as a pretty string.
$timestamp | [UNIX timestamp]: The timestamp |
DateParser::getDay | ( | ) |
Return the day
DateParser::getHour | ( | ) |
Return the hour
DateParser::getMinute | ( | ) |
Return the minute
DateParser::getMonth | ( | ) |
Return the month
DateParser::getMysqlFormatDate | ( | ) |
Return the date in mysql format
DateParser::getMysqlFormatTime | ( | ) |
Return the time in mysql format
DateParser::getTimestamp | ( | ) |
Return the timestamp
DateParser::getYear | ( | ) |
Return the year
static DateParser::quickFormatDate | ( | $ | date, | |
$ | formatString, | |||
$ | addDays = '' | |||
) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$date | [TYPE]: DESCRIPTION | |
$formatString | [TYPE]: DESCRIPTION | |
$addDays | [TYPE]: DESCRIPTION |
static DateParser::quickFormatTime | ( | $ | time, | |
$ | forCalender = false | |||
) | [static] |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$time | [TYPE]: DESCRIPTION | |
$forCalender | [TYPE]: DESCRIPTION |