📜  python datetime 删除时区 - Python 代码示例

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

代码示例1
# dt_tz is a datetime.datetime object
dt = dt_tz.replace(tzinfo=None)