时差8小时的解决方法

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

import datetime
eight_hour = datetime.timedelta(hours=8)
(organization_file.upload_date + eight_hour).strftime("%Y-%m-%d  %H:%M")


转载于:https://my.oschina.net/u/2002748/blog/467005

你可能感兴趣的:(python,数据库,javascript)