Make decisions based on schedule/time

@Beno I was looking at the help doc for GetSecondsSinceMidnight()
and saw that documentation to convert to Minutes is incorrect.

To find the same thing using OptoScript code:

TEMP_VAR = GetSecondsSinceMidnight();

HOURS = TEMP_VAR / 3600;

MINUTES = (TEMP_VAR % 3600 / 60;

SECONDS = (TEMP_VAR % 3600) % 60;

Sweet. Love this sort of feedback…
What help doc were you looking in? (Just the exact title or document number).

Is your Optoscript the corrected code, or the faulty code?

Oh sorry that was a snippet of the help doc for PAC Control Help commands for the
Title:
Get Seconds Since Midnight
Method:
GetSecondsSinceMidnight()