python datetime64 转 datetime

In [24]: pandas.to_datetime('2012-05-01T01:00:00.000000+0100')
Out[24]: datetime.datetime(2012, 5, 1, 1, 0, tzinfo=tzoffset(None, 3600))
posted @ 2020-07-08 00:06  清源居士  阅读(1139)  评论(0编辑  收藏  举报