Skip to main content

system.kanoa.asset.getSiteTimezoneOffset

This function requires KanoaCore module

Description

Given an assetPath, this function will return the offset and timezone for the site (kanoaCore)

Syntax

getSiteTimezoneOffset(paramsDict)
  • Parameters
      paramsDict (dictionary) - Expecting either {'assetId': 1} or {'assetPath': 'Kanoa Industries\Adelaide Hills\Packaging\Line 1'}. {'startDate': someDate} will return offset minutes for the passed-in time. If no startDate is provided, the current timezone offset will be returned
  • Returns
      tzOffSetMins (int) - Timezone offset in minutes
      timeZone (str) - Timezone information
  • Code Examples

    # Example Usage:
    timezone_offset, timezone_info = system.kanoa.asset.getSiteTimezoneOffset({'assetId': 1})