我用了 :
utctime = datetime.datetime(1601,1,1) + datetime.timedelta(microseconds = tup[5])
last_visit_time = "Last visit time:"+ utctime.strftime('%Y-%m-%d %H:%M:%S')
但是我的时间是1601,所以报错显示:
ValueError: year=1601 is before 1900; the datetime strftime() methods require year >= 1900
我用的是python2.7,怎么弄?非常感谢!