格式化时间戳为自定义时间格式的方法
// 调用如下
formatTime(1234567891011, 'Y/M/D h:m:s')
formatTime(1234567891011, 'Y-M-D h:m:s')
formatTime(1234567891011, 'Y/M/D')