easy_cron 0.9.2 copy "easy_cron: ^0.9.2" to clipboard
easy_cron: ^0.9.2 copied to clipboard

Parse cron string to schedule and generate previous or next schedule item.

example/lib/main.dart

import 'package:easy_cron/easy_cron.dart';

void main() {
// create parser instance
  final parser = UnixCronParser();

// parse cron time to CronSchedule
  final schedule = parser.parse('* * * * *');

// next time
  final nextTime = schedule.next();
  print(nextTime.time);

// previous time
  final prevTime = schedule.prev();
  print(prevTime.time);
}
7
likes
150
pub points
80%
popularity

Publisher

unverified uploader

Parse cron string to schedule and generate previous or next schedule item.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

equatable

More

Packages that depend on easy_cron