I am trying to read duration field from Excel file, but instead of timedelta type I get datetime type. So when duration value is more than 24 hours, python openpyxl reads that field not correctly. Is there a right way to read duration field with Python openpyxl?
import openpyxl
workbook = openpyxl.load_workbook('./files/file.xlsx')
worksheet = workbook.active
cell = worksheet.cell(row=2, column=9)
print(cell.value)
Cell (row=2, column=9) value in excel file is 38:12:40, but printed output:
1900-01-01 14:12:40
Cell format code in excel file - [HH]:MM:SS