Possible to check access to current time?

28 views
Skip to first unread message

reinert

unread,
Jun 7, 2023, 2:45:38 AMJun 7
to
Hello,

This may not be a specific Ada question, but anyway:

I use Ada and consider to apply current time to label (dynamic) data so one always can access the latest corrections/versions. This could be a source or error if current (real) time is reported wrong. So is it possible automatically to check that Network time is available and correctly reported (using Ada)?

reinert

Dmitry A. Kazakov

unread,
Jun 7, 2023, 3:07:37 AMJun 7
to
On 2023-06-07 08:45, reinert wrote:

> I use Ada and consider to apply current time to label (dynamic) data so one always can access the latest corrections/versions. This could be a source or error if current (real) time is reported wrong. So is it possible automatically to check that Network time is available and correctly reported (using Ada)?

Yes, you can query an NTP time server. E.g. see

http://www.dmitry-kazakov.de/ada/components.htm#17.17

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

Reply all
Reply to author
Forward
0 new messages