📜  datetime 一个月前 python 代码示例

📅  最后修改于: 2022-03-11 14:45:50.637000             🧑  作者: Mango

代码示例3
import time

# get current time
date_time = time.strftime("%b %d, %Y %-I%p")

#the above outputs: May 27, 2021 7PM