Skip to content

Commit

Permalink
Document offset support for DateTimeItem trigger in RulesDSL (#2364)
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng authored Sep 12, 2024
1 parent c931088 commit 0cbc62a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configuration/rules-dsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ You can either use some pre-defined expressions for timers or use a [cron expres
```java
Time is midnight
Time is noon
Time is <item> [timeOnly]
Time is <item> [timeOnly] [offset=N]
Time cron "<cron expression>"
```

Expand All @@ -190,6 +190,7 @@ 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.
A positive or negative offset in seconds, relative to the date/time of the given item can be specified.

### System-based Triggers

Expand Down

0 comments on commit 0cbc62a

Please sign in to comment.