把excel中时间转成python 时间

时间类型的转换,把excel中时间转成python 时间(两种方式)

xlrd.xldate_as_tuple(cell_value, 0)   #转化为元组形式 =(2014, 7, 8, 0, 0, 0) 
xlrd.xldate.xldate_as_datetime(cell_value, 0)   #直接转化为datetime对象 =datetime.datetime(2018, 7, 9, 0, 0) 
#不转化=41828.0 
原文地址:https://www.cnblogs.com/luoyc/p/12834356.html