PHP Class TimeAgo, Nameless

It has two functions you can call: inWords() which gives you the "time ago in words" between two dates. dateDifference() which returns an array of years,months,days,hours,minutes and seconds between the two dates.
Since: 0.2.0 (2010/05/05)
Author: jimmiw
Exibir arquivo Open project: NamelessMC/Nameless Class Usage Examples

Public Methods

Method Description
__construct ( $timezone = NULL )
dateDifference ( $past, $now = "now" )
inWords ( $past, $time_language, $now = "now" )

Method Details

__construct() public method

public __construct ( $timezone = NULL )

dateDifference() public method

public dateDifference ( $past, $now = "now" )

inWords() public method

public inWords ( $past, $time_language, $now = "now" )