def time_representation(dti): repres=[] repres += scale_to_unit_circle(dti.second, 60) repres += scale_to_unit_circle(dti.minute, 60) repres += scale_to_unit_circle(dti.hour, 24) return repres
def time_representation(dti): repres=[] secs = (dti.minute%2)*60 + dti.second repres += scale_to_unit_circle(secs, 120) mins = (dti.hour%2)*60 + dti.minute repres += scale_to_unit_circle(mins, 120) return repres
def time_representation(dti): repres = [] secs = (dti.minute % 2) * 60 + dti.second repres += scale_to_unit_circle(secs, 120) mins = (dti.hour % 2) * 60 + dti.minute repres += scale_to_unit_circle(mins, 120) return repres