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