SproutCMS

This is the code documentation for the SproutCMS project

function timeAgo()

Returns a time in 'x minutes ago' format.

Very small times (0, 1 seconds) are considered 'Just now'.
Times are represneted in seconds, minutes, hours or days.

Usage

unknown Sprout::timeAgo ( int $timediff );

Arguments

  1. int $timediff
    Amount of time that has passed, in seconds.