Customizable Time Ago React Component

Description:

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

Add Comment