![]() Gets the (fractional) number of seconds since the UNIX epoch (January 1, 1970) "DDdHHh", "HHhMMm", "MMmSSs", "DDd", "HHh", "MMm", "SSs", "NNNNms" - represents a duration in days, hours, minutes, seconds and/or milliseconds."HH:MM:SS" or "HH:MM" - represents a time of day (24-hour clock), returns the number of seconds since midnight.timeOrDuration - a string that can have any of the following formats:. ![]() Hs.conds(timeOrDuration) -> secondsĬonverts a string with a time of day or a duration into number of seconds Returns the number of seconds since local time midnight ![]() this value is used for the timestamps in system generated events.this value does not include time that the system has spent asleep.the time since the last system boot in nanoseconds.Returns the absolute time in nanoseconds since the last system boot. Methods - API calls which can only be made on an object returned by a constructorĪPI Documentation Functions absoluteTime Signature.Constructors - API calls which return an object, typically one that offers API methods.Functions - API calls offered directly by the extension.The workaround is to prevent system from sleeping, configured in Energy Saver in System Preferences. NOTE: timers use NSTimer internally, which will be paused when computers sleep.Įspecially, repeating timers won't be triggered at the specificed time when there are sleeps in between. Hammerspoon docs: hs.timer docs » hs.timerĮxecute functions with various timing rules
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |