FLUTTER ECOSYSTEM

get_time_ago

A Dart package to convert and format `DateTime` objects into human-readable 'time ago' strings like '20 seconds ago', 'a minute ago', or '7 hours ago'.

Latest version
2.3.2
30-day downloads
8.8K
Likes
168
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A lightweight Dart package that converts DateTime objects into human-readable 'time ago' strings, such as '20 seconds ago' or '7 hours ago'. It simplifies the display of relative timestamps in apps, improving user experience by presenting time in a natural, conversational format. The package supports multiple platforms and is easy to integrate with Flutter projects.

Use cases
  • Displaying post timestamps in social media apps
  • Showing message send times in chat interfaces
  • Updating activity feeds with relative time labels
  • Enhancing user interface readability with natural language time
  • Tracking event durations in real-time applications
Key features
  • Simple DateTime to string conversion
  • Supports multiple languages (via localization)
  • Cross-platform compatibility
  • Minimal boilerplate required
  • Configurable precision and output format
Suitable for
  • Flutter developers building real-time apps
  • Apps requiring intuitive time displays
  • Projects focused on UX with timestamped content
  • Developers seeking minimal date formatting solutions
Considerations
  • Does not support custom locale formatting out of the box
  • Limited to relative time formats, not absolute dates
  • Requires manual handling for timezone differences
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add get_time_ago

Categories

Source repository

Related projects