@tsingwoong/clock-doctor
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

@tsingwoong/clock-doctor

https://github.com/tsingwong/clock-doctor/actions

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

Package Sidebar

Install

npm i @tsingwoong/clock-doctor

Weekly Downloads

7

Version

1.0.10

License

MIT

Unpacked Size

12.8 kB

Total Files

5

Last publish

Collaborators

  • tsingwong