Log scheduled date comparisons

Recipe ToolsMarketing

What it does

When a trigger fires every 5 minutes, this automation checks if the current time in Los Angeles falls between two specified dates. It logs the result to the job report so someone can monitor the time window.

Who it's for

Operations teams who need to track when the system time enters or exits a specific date range.

How teams use this

Monitor a seasonal time window

Track when the system enters and exits a specific date range during summer months. Log each transition to the job report for compliance or operational records.

Route based on date boundaries

Use the date comparison result to conditionally route downstream processes only when the current time falls within the specified window. Set different workflows based on whether the condition is met.

Alert teams on date transitions

Check if the system time has crossed into or out of the monitored date range and notify relevant teams. Include the timestamp and boundary information in the notification.

How it works

  1. Check the time every 5 minutes. The Clock automation runs on a schedule, checking the current time in America/Los_Angeles timezone every 5 minutes so comparisons stay current.
  2. Compare dates against now. Evaluate whether the current time falls between July 14, 2023 at 5:36 PM and October 20, 2023 at 5:36 PM in the Los Angeles timezone.
  3. Log the comparison result. Record whether the current time is within the date range to the job report, creating an audit trail of each scheduled check for compliance.