Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Possible to check access to current time?

40 views
Skip to first unread message

reinert

unread,
Jun 7, 2023, 2:45:38 AM6/7/23
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 AM6/7/23
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

0 new messages