I want to make a function called ABC() that runs between 8:00-18:00,and 23:00-6:00
but:
when screen is on, delay ABC(),
when screen is off, wait 30min and check screen, if screen is off then run ABC().
I wonder is there a api can get current hours?
i found cron, but if there is a api can get hours is much better.
thanks for this great great app
newbie ueser