Only with the correct ntpd configuration [1]. For that reason it is impossible to rely on that API in end-user libraries.
[1] https://superuser.com/questions/1156693/is-there-a-way-of-ge...