📜  结合日期和时间python代码示例

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

代码示例1
import datetime
date = datetime.date(2012, 2, 12)
time = datetime.time(1, 30)
combined = datetime.datetime.combine(date, time)