Overview
The week_of_year package extends Dart's DateTime class with an easy-to-use method to calculate the ISO 8601 week of the year. It provides accurate week numbering according to international standards, ensuring consistency across different locales and calendar systems. Ideal for applications requiring weekly scheduling, reporting, or data grouping by week. The package is lightweight, well-documented, and supports all major Flutter platforms.
Use cases
- Weekly reporting
- Calendar applications
- Data aggregation by week
- Scheduling tools
- International date compliance
Key features
- ISO 8601 compliant
- Simple extension method
- Cross-platform support
- Accurate week numbering
- Minimal dependency
Suitable for
- Developers needing ISO week numbers
- Apps with weekly data tracking
- Internationalized date handling
- Lightweight date utilities
Considerations
- Requires Dart 2.12 or higher
- No additional configuration needed
- Only adds week-of-year functionality
- Does not modify original DateTime objects
- No runtime overhead beyond method call