iso_calendar 1.0.0 copy "iso_calendar: ^1.0.0" to clipboard
iso_calendar: ^1.0.0 copied to clipboard

Dart package for calculating the year and week number based on ISO-8601.

iso_calendar #

Run flutter test

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

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

Publisher

verified publisheriktakahiro.dev

Dart package for calculating the year and week number based on ISO-8601.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

meta

More

Packages that depend on iso_calendar