hour, sec_past_hour = divmod(dayclock, 3600)
hour = int(hour)
min, sec = divmod(int(sec_past_hour), 60)
while dayno >= year_size(year):
    dayno = dayno - year_size(year)
year = year + 1
month = 1
while dayno >= ytab[is_leap_year(year)][month]:
    dayno = dayno - ytab[is_leap_year(year)][month]
month = month + 1
day = dayno + 1
return year, month, day, hour, min, sec
Преобразование секунд эпохи в дату на ограниченном встроенном устройстве