@tsingwoong/clock-doctor
v1.0.10
Published
Template project for writing node package with napi-rs
Downloads
4
Maintainers
Readme
@tsingwoong/clock-doctor
calibration time from ntp time in Windows and Mac
Install
yarn add @tsingwoong/clock-doctor
Usage
import { cherckAndSet } from '@tsingwoong/clock-doctor'
const res = checkAndSet();
console.log(res);
// {
// beforeSetTime: '2024-05-23 20:02:22.929925 +08:00',
// afterSetTime: '2024-05-23 20:02:27.478691 +08:00',
// errNo: 35,
// errMsg: 'Resource temporarily unavailable (os error 35)'
// }
Note: It's with auto install optionalDependencies with os and cpu.Just like npm/darwin-universal/package.json
, it will be installed in Macs which of Intel
architecture and ARM
architecture.
Support matrix
Operating Systems
| | support | | --------------- | ------- | | Windows x64 | ✓ | | Windows x32 | ✓ | | Windows arm64 | ✓ | | macOS x64 | ✓ | | macOS arm64 | ✓ | | macOS Universal | ✓ |