import time one_day_in_seconds = 84600 two_weeks_in_seconds = 1209600 def getAgeInSeconds(updateTimeInSeconds :int): now = int(time.time()) ageInSeconds :int = now - updateTimeInSeconds return ageInSeconds