iso_calendar

Last updated:

0 purchases

iso_calendar Image
iso_calendar Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.