from datetime import datetime
#将jenkinspipeline中的currentBuild.startTimeInMillis转换为日常使用的时间格式:
#a=int(currentBuild.startTimeInMillis)
a=1611737708290
b=datetime.fromtimestamp(a/1000)
c=datetime.fromtimestamp(a/1000).strftime('%Y-%m-%d %H:%M:%S')
print(b)
print(c)