TimeBetween
TimeBetween
yaml
type: "io.kestra.plugin.core.condition.TimeBetween"Examples
yaml
id: schedule_condition_timebetween
namespace: company.team
tasks:
- id: log_message
type: io.kestra.plugin.core.log.Log
message: "This flow will execute every 5 minutes between 4pm and 8pm."
triggers:
- id: schedule
type: io.kestra.plugin.core.trigger.Schedule
cron: "*/5 * * * *"
conditions:
- type: io.kestra.plugin.core.condition.TimeBetween
after: "16:00:00+02:00"
before: "20:00:00+02:00"
Properties
after string
Format
timebefore string
Format
timedate string
Default
{{ trigger.date }}