TimeBetweenState

Description

Represents a time range. The valid time should be between after and before.

Fields

Key Type Description
before Time

The max valid time of a day.

Optional

Variable is allowed.

after Time

The min valid time of a day.

Optional

Variable is allowed.

weekdays [Weekday]

The applicable weekdays. If empty, the time range is applicable to everyday.

Optional

Variable is allowed.

Examples

Checks current time is between 12:00 pm and 5:00 pm daily.

condition:
  type: time.between
  before: 5:00 pm
  after: 12:00 pm