summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim <tim@timsnet.com>2020-03-21 18:18:32 -0700
committerAlex Grönholm <alex.gronholm@nextday.fi>2020-03-22 12:06:55 +0200
commit204a74074b2a5ad27954799cc4926f5874e3e9b0 (patch)
tree469d979efdac12311ce1ea9bad5c296b3533a5f2
parentc12305a8bdd26169094fd1d71d3cd95a6e5f25ac (diff)
downloadapscheduler-204a74074b2a5ad27954799cc4926f5874e3e9b0.tar.gz
Hours are 24 hour format
Every monday at 2PM and 3PM would be 14 and 15 respectively. I changed the example to include am and pm
-rw-r--r--docs/modules/triggers/combining.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/modules/triggers/combining.rst b/docs/modules/triggers/combining.rst
index 856cc60..a57f9cf 100644
--- a/docs/modules/triggers/combining.rst
+++ b/docs/modules/triggers/combining.rst
@@ -28,8 +28,8 @@ Run ``job_function`` every 2 hours, but only on Saturdays and Sundays::
CronTrigger(day_of_week='sat,sun')])
scheduler.add_job(job_function, trigger)
-Run ``job_function`` every Monday at 2pm and every Tuesday at 3pm::
+Run ``job_function`` every Monday at 2am and every Tuesday at 3pm::
trigger = OrTrigger([CronTrigger(day_of_week='mon', hour=2),
- CronTrigger(day_of_week='tue', hour=3)])
+ CronTrigger(day_of_week='tue', hour=15)])
scheduler.add_job(job_function, trigger)