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)

Definition at line 13 of file DateParser.php5.


Constructor & Destructor Documentation

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

Initialize a DateParser using a mysql date.

Definition at line 27 of file DateParser.php5.


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

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.

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

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

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

Definition at line 50 of file DateParser.php5.

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

Definition at line 83 of file DateParser.php5.


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

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