截断python datetime对象的最好方法是什么?
datetime
在这种特殊情况下,到今天为止。因此,基本上将小时、分钟、秒和微秒设置为0。
我希望输出也是一个datetime对象,而不是字符串。
https://stackoverflow.com/questions/5476065
相似问题