python 获取utc时间转化为本地时间

import datetime

timenow = (datetime.datetime.utcnow() + datetime.timedelta(hours=8))

timetext = timenow.strftime('%y%m%d')

posted @ 2017-05-26 09:30  bevis-blog  阅读(7275)  评论(2编辑  收藏  举报