iso_calendar 1.0.0-nullsafety.0
iso_calendar: ^1.0.0-nullsafety.0 copied to clipboard

Dart package for calculating a number of years and week numbers based on ISO-8601.

example/lib/main.dart

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
}
5
likes
120
pub points
60%
popularity

Publisher

iktakahiro.dev

Dart package for calculating a number of years and week numbers based on ISO-8601.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

meta

More

Packages that depend on iso_calendar