Of when Hammerspoon was restarted/reloaded. Results in exactly 24 hours you can schedule regular jobs that will run at the expected time independently The first trigger will be set to the earliest occurrence given the repeatInterval if that's omitted,Īnd time is earlier than the current time, the timer will trigger the next day.The timer can trigger up to 1 second early or late.continueOnError - an optional boolean flag, defaulting to false, which indicates that the timer should not be automatically stopped if the callback function results in an error.fn - a function to call every time the timer triggers.repeatInterval - (optional) number of seconds between triggers, or a string in the format "DDd", "DDdHHh", "HHhMMm", "HHh" or "MMm" indicating days, hours and/or minutes between triggers if omitted or 0 the timer will trigger only once. time - number of seconds after (local) midnight, or a string in the format "HH:MM" (24-hour local time), indicating the desired trigger time.Hs.timer.doAt(time, fn) -> timerĬreates and starts a timer which will perform `fn` at the given (local) `time` and then (optionally) repeat it every `interval`. The callback can be cancelled by calling the :stop() method on the returned object before sec seconds have passed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |