Last updated:
0 purchases
iso calendar
iso_calendar #
Dart package for calculating the year and week number based on ISO-8601.
Getting Started #
Add a dependency in your pubspec.yaml:
dependencies:
iso_calendar: ^1.0.0
copied to clipboard
Create an instance of IsoCalendar using .fromDateTime():
import 'package:iso_calendar/iso_calendar.dart';
void main() {
final isoCalendar = IsoCalendar.fromDateTime(DateTime(2021, 1, 1));
print(isoCalendar.year); // 2020
print(isoCalendar.weekNumber); // 52
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.