toNormalizeTimeString method
将整数转换为指定格式的字符串
Implementation
String toNormalizeTimeString({String format = 'yyyy-MM-dd HH:mm:ss'}) {
bool isSecond = this < 1e10;
int milliseconds = isSecond ? this * 1000 : this;
return Jiffy.parseFromMillisecondsSinceEpoch(milliseconds).format(pattern: format);
}