平台介绍 >> js/jsfun/fnTime.js 时间操作
js/jsfun/fnTime.js 时间操作
let ts=fnTime_timestamp()
console.log("格式化时间", fnTime_format(ts,"Y-m-d H:i:s"))
console.log("当前时间:",fnTime_now("Y-m-d H:i:s"))
console.log("取得时间戳 毫秒:", fnTime_timestampMilli())
console.log("取得时间戳 秒:", fnTime_timestamp())
console.log("休眠2秒:", fnTime_sleep(2000))
console.log("取得时间戳 秒:", fnTime_timestamp())