system.kanoa.asset.getSiteTimezoneOffset
Description
Given an assetPath, this function will return the offset and timezone for the site (kanoaCore)Syntax
getSiteTimezoneOffset(paramsDict)- 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
- tzOffSetMins (int) - Timezone offset in minutes
- timeZone (str) - Timezone information
Code Examples
# Example Usage:
timezone_offset, timezone_info = system.kanoa.asset.getSiteTimezoneOffset({'assetId': 1})