Created: 2011-07-07 18:39
Updated: 2017-03-13 10:21
License: apache-2.0

Erlang retreive and decode from an NTP server.

Eshell V5.7.2  (abort with ^G)
1> c(ntp).
2> ntp:ask().

Please note, this function doesn't implement the full NTP algorithm. It just does the first step: poll a server without taking into account round trip time, jitter, dispersion and all those good NTP clustering things. In other words, it answers the question "what time did that server think it was, a few dozen ms ago?" It doesn't answer the question, "what time is it now?"

Licensed under the Apache License, Version 2.0.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more