File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11/*
22 * ntp-client
3- * https://github.com/moonpyk/node-ntp
3+ * https://github.com/moonpyk/node-ntp-client
44 *
55 * Copyright (c) 2013 Clément Bourgeois
66 * Licensed under the MIT license.
1515 exports . defaultNtpServer = "pool.ntp.org" ;
1616
1717 /**
18+ * Fetches the current NTP Time from the given server and port.
1819 * @param {string } server IP/Hostname of the remote NTP Server
1920 * @param {number } port Remote NTP Server port number
20- * @param {function(Object, Date) } callback
21+ * @param {function(Object, Date) } callback(err, date) Async callback for the result date
22+ * or eventually error.
2123 */
2224 exports . getNetworkTime = function ( server , port , callback ) {
2325 var client = dgram . createSocket ( "udp4" ) ,
You can’t perform that action at this time.
0 commit comments