我的代码:
import datetime as dt
import scikits.timeseries as ts
ts_start_datetime= ts.Date(freq='T',year=2011,month=1,day=1,hour= 0,minute=0)
ts_end_datetime = ts.Date(freq='T',year=2011,month=12,day=31,hour=23,minute=45)
start_val = ts_start_datetime.value
# 21564001
end_val = ts_end_datetime.value
# 22089586
如何将start_val
和转换end_val
为datetime
对象?