Mail Archives: djgpp/1999/12/23/07:50:44
I want to add a feature to my program to reference time from the Internet
rather than use the system (machine) clock, for several reasons I won't
list here. I plan on making connections to NTP secondary time servers to
get my timestamps for this. Since my program is a CGI app (for the
present), a net connection is virtually assurred. My questions are:
1. Is accessing a time server by NTP the way I ought to go to get my time
notes: (i) I don't want to reference any host on my LAN or subnet...I'd
just get my host's anyway (ii) getting the system's time will be a backup
procedure if a timeout getting it on the net occurs.
2. I don't want to write the code for getting my time, whether through NTP
or whatever else is suggested, if someone has already implemented the RFCs
for me. Can someone point me to libraries (must link with Win32/LCC) or
source? Thanks.
Mitch Halloran
- Raw text -