Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Time Class Reference
[Helper Classes]

List of all members.

Detailed Description

Time is a class for formatting of time.

Right now it only handles relative time display.

Definition at line 8 of file time.inc.php.

Static Public Member Functions

 formatRelative ($startTime, $parens=true)
 format a time relative to now
 elapsed ($startTime, $endTime, $detail=false)
 get the elapses time since (or until) a date


Member Function Documentation

Time::elapsed startTime,
endTime,
detail = false
[static]
 

get the elapses time since (or until) a date

Parameters:
$startTime the time to start (in seconds since epoch)
$endTime th etime to end (in seconds since epoch)
$detail do we want a detailed time: years, months, weeks, days, etc; OR just the largest time (1 month, or 1 day, etc.)
Returns:
the elapsed time string.

Definition at line 50 of file time.inc.php.

References Util::pluralize().

Referenced by formatRelative().

Time::formatRelative startTime,
parens = true
[static]
 

format a time relative to now

Parameters:
$startTime a timestamp of some form to use as the base time
$parens do we wrap it in parenthesis or not?
Returns:
a relatively formated time string. the full date is given too as an <acronym>

Definition at line 17 of file time.inc.php.

References elapsed().

Referenced by BaseComment::drawCommentDetails(), BaseMessage::drawMessageDetails(), BaseObject::drawRow(), BaseMessage::drawRow(), BaseForumThread::drawRow(), BaseMessage::drawTitleBar(), and BaseComment::drawTitleBar().


The documentation for this class was generated from the following file:
Generated on Fri Oct 27 12:26:42 2006 for BaseJumper by doxygen 1.3.9.1