Skip to main content

system.kanoa.date.getClientOffsetMinsFromGateway

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 Examples

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