if seconds == 86400:
    seconds = 0
xldays += 1
if xldays >= _XLDAYS_TOO_LARGE[datemode]:
    raise XLDateTooLarge(xldate)
if xldays == 0:
    minutes, second = divmod(seconds, 60)
hour, minute = divmod(minutes, 60)
return datetime.time(hour, minute, second)
if xldays < 61 and datemode == 0:
    raise XLDateAmbiguous(xldate)
return datetime.datetime.fromordinal(xldays + 693594 + 1462 * datemode
    ) + datetime.timedelta(seconds=seconds)
Как прочитать дату в формате Excel в Python?