解析 cron 字符串来安排和生成前一个或下一个计划项
解析器
UnixCronParser – 实现 Unix cron, 参见 https://www.ibm.com/docs/en/db2/11.1?topic=task-unix-cron-format
用法
// 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();