Hi
Is it possible to determine the hour of day and day of week within a script and execute a command in the event of a specific criteria?
Thanks
:set date [/system clock get date]
:set time [/system clock get time]
:set month [:pick $date 0 3]
:set day [:pick $date 4 6]
:set year [:pick $date 7 11]
:set hour [:pick $time 0 2]
:set minute [:pick $time 3 5]
#Show variables for testing
:log info "The time is $hour:$minute and the date is $day / $month / $year"
:if ([$month] = "jan") do={ }
:if ([$month] = "feb") do={ }
:if ([$month] = "mar") do={ }
:if ([$month] = "apr") do={ }
:if ([$month] = "may") do={ }
:if ([$month] = "jun") do={ }
:if ([$month] = "jul") do={ }
:if ([$month] = "aug") do={ }
:if ([$month] = "sep") do={ }
:if ([$month] = "oct") do={ }
:if ([$month] = "nov") do={ }
:if ([$month] = "dec") do={ }