Skip to main content

system.kanoa.quality.schedule.getSecondsSinceLastCheck

Requires kanoaQDS license

Description

Returns the seconds since the last scheduled check for a checksheet on an asset.

Syntax

getSecondsSinceLastCheck(paramsDict)

Parameters:
  • paramsDict (dictionary)

  • Returns:
  • result (dictionary)
  • Code Examples

    # Example usage
    paramsDict = {'chkShtId': 1, 'assetId': 18}
    result = system.kanoa.quality.schedule.getSecondsSinceLastCheck(paramsDict)
    print(f"Last scheduled date: {result['lastScheduledDate']}, Seconds since last check: {result['seconds']}")