gmtOffset
Returns the local time zone's offset from GMT, in seconds.
Keyboard Maestro: GMTOFFSET
Details #
gmtOffset() takes no arguments and returns the number of seconds the Mac's current time zone is ahead of GMT (negative when behind), as it is right now, daylight saving included. Eastern Daylight Time gives -14400.
Parameters #
Takes 0 arguments.
{{ gmtOffset() }}
Examples #
gmtOffset()→
-21600gmtOffset() / 3600→
-6Gotchas #
Calling it with any argument is an error:
gmtOffset() takes 0 arguments, got 1.It uses the time zone of the Mac running the macro, and the clock of the run, so a macro run in a test with a fixed clock gets the offset for that moment.