Time of day routing allows calls to be executed different applications based upon the time of day, day of week. You can use it in the different Conditional Statements.

By default, time-based routing uses the UTC timezone.

[
  {
    "if": {
      "expression": "&hour(18-20) && &wday(2-6)",
      "then": []
    }
  }
]
FunctionsDescription
&time_of_day()
Time range formatted: hh:mm[:ss]-hh:mm[:ss] (seconds optional) Example: "08:00-17:00".
&minute_of_day()
Minute of the day, (1-1440) (midnight = 1, 1am = 60, noon = 720, etc.).
&minute()
Minute (of the hour), 0-59.
&hour()
Hour, 0-23.
&wday()
Day of week, 1-7 (Sun = 1, Mon = 2, etc.) or "sun", "mon", "tue", etc.
&mweek()
Week of month, 1-6.
&week()
Week of year, 1-53.
&mday()
Day of month, 1-31.
&mon()
Month, 1-12 (Jan = 1, etc.).
&yday()
Day of year, 1-366.
&year()
Calendar year, 0-9999.