How to use ``xlrd.xldate_as_tuple()``

后端 未结 5 1215
情话喂你
情话喂你 2020-12-03 05:05

I am not quite sure how to use the following function:

xlrd.xldate_as_tuple

for the following data

xldate:39274.0
xldate:39         


        
5条回答
  •  没有蜡笔的小新
    2020-12-03 05:27

    Use it as such:

    number = 39274.0
    book_datemode = my_book.datemode
    year, month, day, hour, minute, second = xldate_as_tuple(number, book_datemode)
    

提交回复
热议问题