API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

FUNCTION: LOCALTIMEOFFSET()

Brew Release
Brew MP 1.0.2
See Also
GETTIMESECONDS() GETUTCSECONDS() GETJULIANDATE() LOCALTIMEOFFSET() Helper Functions GETUPTIMEMS()
Description
This function returns the local timezone offset from Coordinated Universal Time (UTC) Zulu, in seconds.
Optionally returns a flag indicating whether daylight saving time is active. If daylight saving time is active, the value of the local timezone offset already takes the shift into account; the flag is just for controlling the display of a timezone name if desired.
The returned value is added to UTC Zulu to give local time:
local time = UTC Zulu + local time offset
Note that the value that this function returns may depend on whether the device has acquired system time. Use ISTIMEVALID() or IDeviceNotifier to determine whether the device has acquired system time.
Params
pbDaylightSavings
[]:
[in/out]: If non-NULL on input, this flag specifies whether daylight savings time is active.
Prototype
  •    int32 LOCALTIMEOFFSET(boolean *pbDaylightSavings);
    
Return
  • Returns the local timezone offset from UTC Zulu in seconds.
Side Effect
  • None
Comments
None