»

LJ::ago_text

LJ::ago_text — Converts integer seconds to English time span

Use

LJ::ago_text(secondsold);

Arguments

  • secondsold. The number of seconds from now something was made.

Info

Turns a number of seconds into the largest possible unit of time. "2 weeks", "4 days", or "20 hours".

Source:

cgi-bin/ljlib.pl

Returns:

A string with the number of largest units found