说明 / 示例
用法: timetag_to_datetime(timetag, format)
释义: 将毫秒时间转换成日期时间
参数:
timetag:毫秒时间,1512748800000
Format:格式字符串,’%Y-%m-%d %H:%M:%S’ 等任意格式
返回: str,合约代码
示例:
```py
def handlebar(ContextInfo):
print(timetag_to_datetime(1512748860000, '%Y%m%d %H:%M:%S'))
```