Skip to main content

system.kanoa.date.getClientOffsetMinsFromGateway

This function requires KanoaCore module

Description

This function returns the timezone offset between the client and the gateway for the date passed in.

Syntax

getClientOffsetMinsFromGateway(clientTZ, tStamp)
  • Parameters:
      clientTZ: str - Timezone of the client (browser)
      tStamp: datetime - Date for which the offset is to be calculated
  • Returns: offsetMins - int
  • Code Example

    # Example Usage:
    offsetMins = system.kanoa.date.getClientOffsetMinsFromGateway(clientTZ, tStamp)