Open pjbrinck opened 6 years ago
Run this
let date = new Date(); console.log(later.schedule(later.parse.text('every 1 hours')).prev(2, date)); console.log(later.schedule(later.parse.text('every 1 hours')).next(2, date)); console.log(later.schedule(later.parse.text('every 30 minutes')).prev(2, date)); console.log(later.schedule(later.parse.text('every 30 minutes')).next(2, date));
and notice the odd current time in entry on of line two
[ 2018-04-25T08:00:00.000Z, 2018-04-25T07:00:00.000Z ] [ 2018-04-25T08:52:48.611Z, 2018-04-25T09:00:00.000Z ] [ 2018-04-25T08:30:00.000Z, 2018-04-25T08:00:00.000Z ] [ 2018-04-25T09:00:00.000Z, 2018-04-25T09:30:00.000Z ]
Run this
and notice the odd current time in entry on of line two