https://github.com/nikolajskov/easter
Small Dart package that calculates the date of Easter from 1583 to 4099.
https://github.com/nikolajskov/easter
dart dart-package dartlang easter
Last synced: 2 months ago
JSON representation
Small Dart package that calculates the date of Easter from 1583 to 4099.
- Host: GitHub
- URL: https://github.com/nikolajskov/easter
- Owner: nikolajskov
- License: mit
- Created: 2019-04-04T17:53:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-21T14:53:02.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T21:41:44.466Z (12 months ago)
- Topics: dart, dart-package, dartlang, easter
- Language: Dart
- Homepage:
- Size: 34.2 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/nikolajskov/easter/actions/workflows/easter.yml)
[](https://pub.dev/packages/easter)# 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](https://api.dartlang.org/stable/dart-core/DateTime-class.html) object with year, month and day properties set for Easter Sunday of the specified year. The time part of the [DateTime](https://api.dartlang.org/stable/dart-core/DateTime-class.html) object is not set.
```dart
import 'package:easter/easter.dart';var easter = getEaster(2024);
print(easter); // 2024-03-31 00:00:00.000
```