bcd_to_int
t.tm_year = bcd_to_int(cmos->century) * 100 + bcd_to_int(cmos->year)
t.tm_mon = bcd_to_int(cmos->month) - 1;
t.tm_mday = bcd_to_int(cmos->day);
t.tm_hour = bcd_to_int(cmos->hour);
t.tm_min = bcd_to_int(cmos->minute);
t.tm_sec = bcd_to_int(cmos->second);
t.tm_year = bcd_to_int(cmos->century) * 100 + bcd_to_int(cmos->year)
t.tm_mon = bcd_to_int(cmos->month) - 1;
t.tm_mday = bcd_to_int(cmos->day);
t.tm_hour = bcd_to_int(cmos->hour);
t.tm_min = bcd_to_int(cmos->minute);
t.tm_sec = bcd_to_int(cmos->second);