1.1.4 • Published 6 years ago

ultimate-time-ago v1.1.4

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

Ultimate Time Ago

ultimate-time-ago has a simple purpose: to help you count how much time has passed since today.

Features

  • Pure Javascript, no dependencies.
  • Works with any Javascript framework

Installation

npm

npm i ultimate-time-ago

Usage

import {timeAgo} from 'ultimate-time-ago';

const date = 1562712802175; // Can take any date format such as new Date() or Date.now();

timeAgo(date) // Will output how man seconds, minutes, hours, days, weeks, or years the specified date is from right now;


// OR you can use this way


import UTA from 'ultimate-time-ago';

const date = 1562712802175; // Can take any date format such as new Date() or Date.now();

UTA.timeAgo(date) // Will output how man seconds, minutes, hours, days, weeks, or years the specified date is from right now;
1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago