UNPKG

get-how-long-ago

Version:

give it date in milliseconds and get how long ago it was, both in object form and human friendly string.

11 lines (10 loc) 504 B
/** * Author: Yahya Hosainy * Version: 1.0.6 */ import * as Types from "./types"; export declare function secondsAgo(miliseconds: number): Types.SecondsAgoReturnObject; export declare function minutesAgo(miliseconds: number): Types.MinutesAgoReturnObject; export declare function hoursAgo(miliseconds: number): Types.HoursAgoReturnObject; export declare function daysAgo(miliseconds: number): Types.DaysAgoReturnObject; export declare function timeAgo(miliseconds: number): Types.TimeAgoReturnObject;