def timecode(time_now, interval):
    """ make integer and divide by time interval of valid OTP """
    i = time.mktime(time_now.timetuple())
    return int(i / interval)
def timecode ( time_now , interval ) : i = time . mktime ( time_now . timetuple ( ) ) return int ( i / interval )
make integer and divide by time interval of valid OTP