Skip to content
CodeYan01 edited this page Oct 26, 2022 · 1 revision

Date condition

The "Date" macro condition allows you to check the current date/time.

Simple settings

Day of the week selection

The first dropdown lets you pick the day of the week. image

You can set it to "Any day" if you will only be checking the time.

Time of day

image

The checkbox at (2) enables time checking and you can type the time at (3). The format is in hours:minutes:seconds and only 24-hour format is supported. The supported check types at (1) are:

  • At - Whether the current time is exactly the specified time.
  • Before - Whether the current time is before the specified time.
  • After - Whether the current time is after the specified time.

Note that the time checks will only be done if the current day of the week matches the specified day of the week.

Advanced settings

You can click "Show advanced settings" to switch to the advanced settings, where you can specify exact dates and additionally check if the current date/time is between the specified range.

Date and time selection

image

The checkbox at (2) enables the date check at (3), while the checkbox at (4) enables the time check at (5). The time uses the same time format in simple settings.

image

Although you can type the date manually at (3), you can also click the arrow beside it to select the date from a calendar.

image

The advanced settings adds a "Between" check type, allowing you to set a date/time range.

Repeat with interval

image

You can set the condition to return true every X seconds, minutes, or hours by ticking the checkbox at (1). This will make it so once the date/time condition on top is met, the condition will repeat continuously with the specified interval.

Ticking the checkbox at (3) will update the selected date/time to the date/time that the repeat feature will activate next, which is shown at (2). This means that if you set the repeat interval to 5 seconds, the date/time you selected will be incremented by 5 seconds every time the repeat feature activates. This can be useful if you will have to restart OBS during the repeat interval, so that the condition will be executed again, as long as the next match time will still be met. If you are using this feature with the "Between" check type, both the start date/time and the end date/time of the date range will be incremented.

Switch back to simple settings

image

Clicking this button will switch it back to the simple settings of the date macro condition.

Example guides

Explanations

Clone this wiki locally