snowyu / remindme.js

The Remindme multiplatform H5 application.
MIT License
3 stars 0 forks source link

Remind me repeatedly. #3

Open snowyu opened 7 years ago

snowyu commented 7 years ago

Reoccurring events

  // fires every 2 hours on the first day of every month
  // and 8:00am and 8:00pm on the last day of every month
  // except in December
  var sched = later.parse.recur()
                .every(2).hour().first().dayOfMonth()
              .and()
                .on(8,20).hour().last().dayOfMonth()
              .except()
                .on(12).month();

References:

Sanbornzhang commented 7 years ago