https://github.com/karbunkul/dart_easy_cron
https://github.com/karbunkul/dart_easy_cron
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/karbunkul/dart_easy_cron
- Owner: karbunkul
- License: mit
- Created: 2022-04-06T10:33:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-13T12:39:50.000Z (almost 3 years ago)
- Last Synced: 2025-10-23T03:41:06.063Z (8 months ago)
- Language: Dart
- Size: 18.6 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Parse cron string to schedule and generate previous or next schedule item
## Parsers ##
**UnixCronParser** - implementation unix cron, see [https://www.ibm.com/docs/en/db2/11.1?topic=task-unix-cron-format](https://www.ibm.com/docs/en/db2/11.1?topic=task-unix-cron-format)
## Usage: ##
```dart
// import library
import 'package:easy_cron/easy_cron.dart';
// create parser instance
final parser = UnixCronParser();
// parse cron time to CronSchedule
final schedule = parser.parse('* * * * *');
// next time
final nextTime = schedule.next();
// previous time
final prevTime = schedule.prev();
```