This has been on my todo list for a long time and I am giving everybody here the first peek at it. (My XT doesn't have a clock/calendar, so this is really helpful!)
http://www.brutman.com/mTCP/sntp.exe
This will make it into the next release of mTCP, but for now a raw EXE file will have to do. Follow the normal mTCP setup directions (load a packet driver and do a minimal configuration file) to get it to work.
One thing that needs to be done first is setting the TZ environment variable so that the program knows what timezone you are in. I'm using WATCOM and that follows the POSIX standard where timezones west of GMT use positive offsets while timezones east of GMT use negative ones. (This is opposite of what Windows and normal people do.) Here are some examples:
set TZ=EST5EDT (US Eastern Standard, 5 hour offset, DST is observed)
set TZ=CST6CDT (US Central, 6 hour offset, DST is observed)
set TZ=UTC-1 (One hour east of GMT, somewhere in Europe maybe?)
set TZ=CET-2CDT (Two hours east of GMT, DST is observed)
The full rules for setting it, including how to write a rule for when DST is observed can be found in the WATCOM docs. I'll have it in the readme, but this should get you started.
Yell if you have problems or comments.
-Mike --- mTCP - TCP/IP apps for vintage DOS machines!
http://www.brutman.com/mTCP |