@20i/timesync 中文文档教程
@20i/timesync
该库提供了一种与时间服务器同步时间的方法(默认为 20i 时间服务器)
import timesync from "@20i/timesync"
async function() {
await timesync.sync({ delay: 50 })
console.log("offsetMs", timesync.offsetMs)
console.log("moment", timesync.now().toISOString())
}
@20i/timesync
This library provides a way to get synchronized Time with a time server (20i time server by default)
import timesync from "@20i/timesync"
async function() {
await timesync.sync({ delay: 50 })
console.log("offsetMs", timesync.offsetMs)
console.log("moment", timesync.now().toISOString())
}
更多
你可能也喜欢
- 5sem-web-lab3 中文文档教程
- @1hive/connect-disputable-honey-pot 中文文档教程
- @1onlinesolution/dws-log 中文文档教程
- @2bitgmbh/planning-component 中文文档教程
- @3rdvision/ripe-sdk 中文文档教程
- @4th-motion/stylelint-config 中文文档教程
- @52cik/tinypng-cli 中文文档教程
- @abandonware/eddystone-beacon-scanner 中文文档教程
- @abcnews/mount-utils 中文文档教程
- @abstractmark/abstractmark 中文文档教程