system.kanoa.schedule.getTimezoneOffsetMinsBetweenClientAndGateway
Description
Given the UTC offset in hours for the client (or device), this function will return the timezone offset between the gateway and the client.Syntax
getTimezoneOffsetMinsBetweenClientAndGateway(deviceUTCOffsetHrs)- deviceUTCOffsetHrs (float) - Device UTC offset in hours.
- Client offset in minutes (clientOffsetMins).
Code Example
# Example Usage:
device_utc_offset_hrs = 5.5
client_offset_mins = system.kanoa.schedule.getTimezoneOffsetMinsBetweenClientAndGateway(device_utc_offset_hrs)