timeago.js

:clock8: :hourglass: timeago.js is a tiny(2.0 kb) library used to format date with `*** time ago` statement. (by mrdotb)

Timeago.js Alternatives

Similar projects and alternatives to timeago.js

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better timeago.js alternative or higher similarity.

timeago.js reviews and mentions

Posts with mentions or reviews of timeago.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-13.
  • Probuild Ex Part Three
    5 projects | dev.to | 13 Oct 2022
    /** * @license MIT * timeago.js 4.0.2 * https://github.com/mrdotb/timeago.js * Copyright (c) 2016 Hust.cc */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).timeago={})}(this,function(e){"use strict";function t(e,t){n[e]=t}function r(e){return n[e]||n.en_US}var n={},a=[60,60,24,7,365/7/12,12];function o(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function s(e,t){for(var n=e<0?1:0,r=e=Math.abs(e),o=0;e>=a[o]&&o=a[n]&&n

Stats

Basic timeago.js repo stats
1
0
10.0
over 1 year ago

mrdotb/timeago.js is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of timeago.js is TypeScript.

Popular Comparisons


Sponsored
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com