Document timeOnly option for DateTimeTrigger (#1936)

This feature was added in openhab-core#3051

Signed-off-by: Flole <flole@flole.de>

Signed-off-by: Flole <flole@flole.de>
pull/1938/head
Flole998 2022-12-02 21:11:47 +01:00 committed by GitHub
parent 969fae1f7b
commit 4bda286b4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -167,12 +167,12 @@ So in Rules where the Rule needs to know what the command was, use the `received
### Time-based Triggers
You can either use some pre-defined expressions for timers or use a [cron expression](https://www.quartz-scheduler.org/documentation/quartz-2.2.2/tutorials/tutorial-lesson-06.html) instead:
You can either use some pre-defined expressions for timers or use a [cron expression](https://www.quartz-scheduler.org/documentation/quartz-2.2.2/tutorials/tutorial-lesson-06.html) or an item instead:
```java
Time is midnight
Time is noon
Time is <item>
Time is <item> [timeOnly]
Time cron "<cron expression>"
```
@ -188,6 +188,8 @@ A cron expression takes the form of six or optionally seven fields:
You may use the generator at [FreeFormatter.com](https://www.freeformatter.com/cron-expression-generator-quartz.html) to generate your cron expressions.
When using an item and you want to ignore the date-portion of that item the `timeOnly` option can be used.
### System-based Triggers
System-based triggers are provided as described in the table below: