Customizable Time Ago React Component

International highly customizable relative date/time formatter for React (both for past and future dates).

Installation:

react-time-ago

Formats a date to something like:

  • just now
  • 5m
  • 15 min
  • 25 minutes
  • half an hour ago
  • an hour ago
  • 2h
  • yesterday
  • 2d
  • 1wk
  • 2 weeks ago
  • 3 weeks
  • half a month ago
  • 1 mo. ago
  • 2 months
  • half a year
  • a year
  • 2yr
  • 5 years ago
  • … or whatever else

Preview:

Customizable Time Ago React Component

Download Details:

Author: halt-hammerzeit

Live Demo: View The Demo

Download Link: Download The Source Code

Official Website: https://github.com/halt-hammerzeit/react-time-ago

License: MIT

Add Comment