Fork me on GitHub

python 本地时间+8小时

current_time = (datetime.datetime.now() + datetime.timedelta(hours=8)).strftime('%Y-%m-%d %H:%M:%S')   

posted @ 2019-08-22 19:48  猿起缘灭  阅读(3915)  评论(0编辑  收藏  举报