Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.
/ os-timesync Public archive

Check whether NTP time sync is enabled in OS settings

Notifications You must be signed in to change notification settings

fjl/os-timesync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travis AppVeyor

os-timesync can help you check whether NTP time sync is enabled in OS settings. It can do so reliably on OS X and Windows and somewhat less reliably on Linux. Note that the result does not tell you whether the local time is accurate.

var timesync = require("os-timesync");

timesync.checkEnabled(function (err, enabled) {
    if (err) {
        console.log("can't check: " + err.toString());
        return;
    }
    console.log("enabled =", enabled);
});

About

Check whether NTP time sync is enabled in OS settings

Resources

Stars

Watchers

Forks

Packages

No packages published