util.formatTime(new Date()) 获取当前时间 安卓 和iOS得到的结果?

小程序 文章 2020-08-13 16:41 801 0 全屏看文

AI助手支持GPT4.0

util.formatTime(new Date()) 获取当前时间 安卓 和iOS得到的结果?util.formatTime(new Date()) Get the current time Android and iOS results?

util.formatTime(new Date()) 获取当前时间 安卓 和iOS得到的结果?

util.formatTime(new Date())  获取当前时间  安卓 和iOS得到的结果是一样的吗?求教大佬,本人没有苹果手机,身边人也没有,无法亲测

util.formatTime (New date()) get the same result from Android and IOS at the current time? Ask for advice, I don't have an Apple phone, and I don't have people around me, so I can't test it in person

回答:

🦁 🦁 🦁 🦁 🦁 🦁:

安卓的YYYY-MM-dd HH:mm:ss ios的YYYY/MM/dd HH:mm:ss

Hoooooo!:

操作时间的都是一样,不区分苹果/安卓

Lsir:奥,网上有人说会有时区的问题,会相差8个小时,这不是在这里出现的吧。
拾忆:

显示都是一样的,获取开发服务器的时间,ios(YYYY/MM/dd),安卓(YYY-MM-dd)有些不同

-EOF-

AI助手支持GPT4.0