import time def getAgeInSeconds(updateTimeInSeconds :int): now = int(time.time()) ageInSeconds :int = now - updateTimeInSeconds return ageInSeconds