This utilitary sets the system date and hour from internet.

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

1 program, 2 choices:

- NNTP_CLK is a truncated usenet client (tcp port 119), using the DATE command
to get a humain current date.

or

- NTP_CLNT is a (S)NTP client, using the official protocol on udp port 123
to get timestamp from 1970 (unix epoch). Computation is done to convert the
unsigned 32 bits timestamp to human date and hour.


3 available running modes:

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

2) rename it as (name).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 (name).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\(name).prg" command.


Remarks:

- Do not put it in the AUTO folder.
- If MiNT is detected, the program logs to u:\ram\(name).log

History:

- 1.0B: official release
- 1.0C: added busybee while working (thanks Lonny Pursell)
        added NTP udp 123 client mode (thanks Czietz)
- 1.0D: (NTP_CLNT only) fix crash at ACC or PRG start, if TCP layer was missing.
        fix: double call at ACC or PRG start.
- 1.0E: updates window desk contents after writing into logfile 
        (on evolved AES), uses SHEL_FIND first to locate its RSC file.

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

Rajah Lone
https://ptonthat.fr
