How to convert `ctime` to `datetime` in Python?

前端 未结 4 649
失恋的感觉
失恋的感觉 2020-12-24 12:21
import time
t = time.ctime()

For me at the moment, t is \'Sat Apr 21 11:58:02 2012\'. I have more data like this.

4条回答
提交回复
热议问题