easter 2.0.1 copy "easter: ^2.0.1" to clipboard
easter: ^2.0.1 copied to clipboard

A small Dart package that calculates the date of Easter from 1583 to 4099.

Build

easter #

Small Dart package that calculates the date of Easter from 1583 to 4099.

Usage #

Calling the getEaster() method with a year as parameter returns a DateTime object with year, month and day properties set for Easter Sunday of the specified year. The time part of the DateTime object is not set.

import 'package:easter/easter.dart';

var easter = getEaster(2024);
print(easter); // 2024-03-31 00:00:00.000
5
likes
140
pub points
41%
popularity

Publisher

verified publisherhesselholtskov.dk

A small Dart package that calculates the date of Easter from 1583 to 4099.

Repository (GitHub)
View/report issues

Topics

#date

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on easter