Skip to main content

system.kanoa.schedule.getTimezoneOffsetMinsBetweenClientAndGateway

This function requires KanoaOPS module

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)
  • Parameters
      deviceUTCOffsetHrs (float) - Device UTC offset in hours.
  • Returns
      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)