This utilitary sets the system date and hour by calling the DATE command
during short connection to a usenet server (NNTP).

Needs STinG/STiK or MiNTnet+GlueSTiK for the internet access.

Sorry, I couldn't manage to code a reliable NTP client (udp, port 123).
The value from the time since 1900 Epoch had a 300-600 seconds missing
from the correct timestamp. Didn't find out why.
I know using the NNTP DATE command is not recommended, but I do it
since a long time for my Atari machines.


3 available running modes:

1) leave it as NNTP_CLK.APP: runs as normal application, with an interface.
First call is manual or/and every N minutes if wanted.

2) rename it as NNTP_CLK.ACC: run as an accessory, first call is automatic,
10 seconds after its launch, then every N minutes if wanted.
This mode is advised for monotasking TOS or machines that looses accurate
time due to weird frequencies.

3) rename it as NNTP_CLK.PRG: runs without interface (no need of the RSC
file besides), wait 10 seconds hoping the TCP/IP stack is initiated.
This is advised in the START folder of MagiC, or in the startup script 
of XaAES/MyAES with the "run pathfile\nntp_clk.prg" command.


Remarks:

- Do not put it in the AUTO folder.

- If MiNT is detected, the program logs to u:\ram\nntp_clk.log


Disclaimer: use it at your own risk. GFA sources are provided for
general knownledge and possible bugfix.

Rajah Lone
https://ptonthat.fr
