old = datetime.datetime(2016, 12, 30, 13, 56, 51)
new = datetime.datetime(old.year + (old.month==12), old.month == 12 or old.month + 1, 1, 6, 0, 0)

 

参考:http://www.cnblogs.com/symons1992/p/5944445.html

相关文章:

  • 2021-05-26
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2022-02-05
  • 2021-12-12
相关资源
相似解决方案