Permalink
Browse files

doc(ontime): document weekday and weekend (#3)

  • Loading branch information...
mycoboco committed Jun 1, 2018
1 parent 2cf8102 commit e8ca20f6fa12259c1ea1bf79e37d48a1350e2fc9
Showing with 13 additions and 0 deletions.
  1. +13 −0 README.md
@@ -141,6 +141,19 @@ Weekly jobs have a different format to specify a day of a week.
This code prints on Saturday and Sunday every week.
For convenience, `weekday` and `weekend` are supported as shorthands for `Mon`
to `Fri` and `Sat` to `Sun`, respectively.
ontime({
cycle: 'Weekend 12:00:00'
}, function (ot) {
console.log('weekend!')
ot.done()
return
})
is equivalent to the example above.
##### Hourly jobs

0 comments on commit e8ca20f

Please sign in to comment.