v0.6.2
cron
क्रॉन के समान समय-आधारित जॉब स्केड्यूलर। निश्चित समय या अंतराल पर कार्यों को नियमित रूप से चलाएं।
595लाइक 55.6 हज़ार30-दिन डाउनलोड160Pub अंक
AndroidiOSWebmacOSWindowsLinux
Dart के लिए एक क्रॉन-जैसा समय-आधारित कार्य योजना निर्देशक
^1.1.1^5.0.0^1.25.0^1.3.1यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Run tasks periodically at fixed times or intervals.
A simple usage example:
import 'package:cron/cron.dart';
void main() {
final cron = Cron();
cron.schedule(Schedule.parse('*/3 * * * *'), () async {
print('every three minutes');
});
cron.schedule(Schedule.parse('8-11 * * * *'), () async {
print('between every 8 and 11 minutes');
});
}
You can easily create and parse cron format:
import 'package:cron/cron.dart';
void main() {
print(Schedule.parse('3-5 * * * *').minutes); // [3, 4, 5]
print(Schedule(hours: 12, minutes: 25, weekdays: [2, 3])
.toCronString()); // 25 12 * * 2,3
}