Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(period == 'Every 30 Minutes') {
- cron = '0 ' + System.now().addMinutes(30).minute() + ' * * * ?';
- }
- else if(period == 'Hourly') {
- cron = '0 ' + System.now().minute() + ' * * * ?';
- }
- else if(period == 'Daily') {
- cron = '0 0 ' + System.now().addHours(1).hour() + ' *' + ' *' + ' ?';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement