Package selection guidance compiled from public package information, community data, and project usage.
The time package provides type-safe DateTime and Duration calculations in Dart, enhancing reliability and readability through intuitive extensions. It simplifies common date and time operations by offering a clean, fluent API that prevents runtime errors associated with manual date manipulation. Built with safety and developer experience in mind, it supports all major platforms including mobile, web, and desktop. The package is ideal for applications requiring precise time handling, such as scheduling, timers, or event tracking.
Use cases
Scheduling events
Calculating time differences
Building countdown timers
Handling recurring tasks
Managing time zones
Tracking durations
Key features
Type-safe operations
Extensive extension methods
Cross-platform support
Compile-time safety
Intuitive syntax
Immutable duration handling
Suitable for
Developers needing reliable time logic
Apps with complex scheduling
Time-based analytics
Real-time applications
Educational tools for time manipulation
Considerations
Requires understanding of Dart extensions
May increase build size slightly
Not suitable for low-level system time access
Limited to high-level time calculations
No built-in time zone conversion
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
⏰ Time
With shiny extensions, if you have ever written something like this, then look no further:
Visit the API Reference to find out all that is available.
🐛 Bugs/Requests
If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.