Python3 from datetime import datetime, timedelta from dateutil import tz time_zone = tz.gettz('Asia/Shanghai') now = datetime.now(tz=time_zone) 参考: 【AWS Lambda Python】pytzが使えない対応方法