1
0
Fork 0
tera/Source/lib/ntp-client
progr76@gmail.com 3029d69c0e 0.884 2019-02-10 22:53:54 +03:00
..
bin 0.884 2019-02-10 22:53:54 +03:00
lib 0.884 2019-02-10 22:53:54 +03:00
.gitattributes 0.884 2019-02-10 22:53:54 +03:00
.jshintrc 0.884 2019-02-10 22:53:54 +03:00
.npmignore 0.884 2019-02-10 22:53:54 +03:00
.travis.yml 0.884 2019-02-10 22:53:54 +03:00
Gruntfile.js 0.884 2019-02-10 22:53:54 +03:00
LICENSE-MIT 0.884 2019-02-10 22:53:54 +03:00
README.md 0.884 2019-02-10 22:53:54 +03:00
node-ntp-client.sublime-project 0.884 2019-02-10 22:53:54 +03:00
package.json 0.884 2019-02-10 22:53:54 +03:00

README.md

ntp-client Build Status

Pure Javascript implementation of the NTP Client Protocol

Getting Started

Install the module with: npm install ntp-client

var ntpClient = require('ntp-client');

ntpClient.getNetworkTime("pool.ntp.org", 123, function(err, date) {
    if(err) {
        console.error(err);
        return;
    }

    console.log("Current time : ");
    console.log(date); // Mon Jul 08 2013 21:31:31 GMT+0200 (Paris, Madrid (heure dété))
});

Contributors

License

Copyright (c) 2014 Clément Bourgeois Licensed under the MIT license.