1
0
Fork 0
tera/Source/lib/ntp-client/README.md

30 lines
800 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ntp-client [![Build Status](https://secure.travis-ci.org/moonpyk/node-ntp-client.png?branch=master)](http://travis-ci.org/moonpyk/node-ntp-client)
Pure Javascript implementation of the NTP Client Protocol
## Getting Started
Install the module with: `npm install ntp-client`
```javascript
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
* Clément Bourgeois (https://github.com/moonpyk)
* Callan Bryant (https://github.com/naggie)
## License
Copyright (c) 2014 Clément Bourgeois
Licensed under the MIT license.