ToucanToco / fastexcel

A Python wrapper around calamine
http://fastexcel.toucantoco.dev/
MIT License
85 stars 4 forks source link

fix(types/excelsheet): Fix duration to milliseconds conversion #161

Closed lukapeschke closed 5 months ago

lukapeschke commented 5 months ago

closes #159

For durations, we were using calamine's as_time API to convert durations to milliseconds, as the as_duration API was not available at the time of implementation. However, this does not work anymore, as as_time will return None for Duration values. This fixes it