会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
睁yan-ii
python
博客园
首页
新随笔
联系
订阅
管理
2020年12月9日
django 取出数据库的时间与当前时间相加减
摘要: 1 转换时区utc比北京时间慢八个小时 from datetime import tzinfo, timedelta, datetime ZERO = timedelta(0) class UTC(tzinfo): def utcoffset(self, dt): return ZERO def t
阅读全文
posted @ 2020-12-09 14:12 睁yan-ii
阅读(1252)
评论(0)
推荐(0)
公告