DateParser Class Reference
[Undocumented Classes]

INSERT BRIEF DESCRIPTION HERE. More...

List of all members.

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.


Detailed Description

INSERT BRIEF DESCRIPTION HERE.

INSERT FULL DESCRIPTION HERE

Author:
AUTHOR (DATE)

Constructor & Destructor Documentation

DateParser::__construct ( date,
time = "" 
)

Initialize a DateParser using a mysql date.


Member Function Documentation

static DateParser::currentDateMysql (  )  [static]

Formats the current date for mysql.

Returns:
[string]: the current date in format YYYY-MM-DD HH-MM-SS

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.

Parameters:
$timestamp [UNIX timestamp]: The timestamp
Returns:
[string]: A pretty version expressed in time before now

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

Parameters:
$date [TYPE]: DESCRIPTION
$formatString [TYPE]: DESCRIPTION
$addDays [TYPE]: DESCRIPTION
Returns:
[TYPE]: RETURN DESCRIPTION

static DateParser::quickFormatTime ( time,
forCalender = false 
) [static]

INSERT BRIEF DESCRIPTION HERE.

INSERT FULL DESCRIPTION HERE

Parameters:
$time [TYPE]: DESCRIPTION
$forCalender [TYPE]: DESCRIPTION
Returns:
[TYPE]: RETURN DESCRIPTION


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

Generated on Wed Nov 24 02:02:17 2010 for Common by  doxygen 1.5.6