timeAgo()

Gets a string indicating how long ago a given date was in the largest unit possible.

This function is valid in v2.1.0 to v2.13.1. This function has been downloaded 25 times.

Parameters

{Date} dateTime
Date in the past.
{Date=} opt_currDateTime Optional, Default:new Date()
Current date. If not given defaults to the current date and time.

Returns

{string}
A string indicating in the largest unit possible how long ago dateTime happened compared to opt_currDateTime.