Overview
A lightweight Flutter package that brings essential Moment.js-like functionality for displaying relative time. It simplifies the formatting of time differences, such as '2 minutes ago' or 'in 5 hours', across multiple platforms. Designed for ease of use, it provides a clean API to convert timestamps into human-readable relative strings without heavy dependencies. Ideal for apps needing intuitive time representations in user interfaces.
Use cases
- Displaying post timestamps
- Showing message send times
- Updating live activity indicators
- Enhancing user notifications
- Tracking event deadlines
Key features
- Simple relative time formatting
- Cross-platform support
- Minimal dependency footprint
- Easy integration with DateTime objects
- No external libraries required
Suitable for
- Apps with real-time updates
- Social media interfaces
- Chat applications
- Task management tools
- Any app requiring readable time differences
Considerations
- Limited to relative time only
- No date parsing or manipulation
- Does not support localization
- Not suitable for complex date operations
- Requires manual handling of timezone offsets