relativetimeago 1.0.2 copy "relativetimeago: ^1.0.2" to clipboard
relativetimeago: ^1.0.2 copied to clipboard

A lightweight and customizable Dart library to format relative time expressions like "2 hours ago", "in 3 days", or "now". Supports abbreviations, thresholds, custom labels and more.

1.0.2 #

  • Documentation fix

1.0.0 #

  • Initial release.
  • Supports:
    • Past and future time difference formatting
    • Configurable abbreviations (e.g., "2h" vs "2 hours")
    • "Today", "Tomorrow", and "Yesterday"
    • Capitalization control
    • Time threshold for "now"
    • Custom prefixes ("ago", "in")
    • Approximate weeks, months, and years
0
likes
130
points
15
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A lightweight and customizable Dart library to format relative time expressions like "2 hours ago", "in 3 days", or "now". Supports abbreviations, thresholds, custom labels and more.

Repository (GitHub)
View/report issues

Topics

#time #datetime #formatting #human-readable #localization

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on relativetimeago