Skip to content

Function: timeAgo()

ts
function timeAgo(date, options?): string;

Parameters

ParameterType
dateDate
optionsstring | RelativeOptions

Returns

string

Released under the MIT License.