Skip to content

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

License

Notifications You must be signed in to change notification settings

nikolajskov/easter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Pub

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages