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.
Datei anzeigen
Open project: NamelessMC/Nameless
Class Usage Examples
Public Methods
Method Details
__construct()
public method
dateDifference()
public method
public inWords ( $past, $time_language, $now = "now" ) |