PDA

Click to See Complete Forum and Search --> : Retrieve date & time from internet


cartesia
Jun 1st, 2000, 08:39 PM
Is there any way I can get the date and time off the internet instead of off the local computer? I don't want the date to be changable, as the amount of time between runnings of the program is important.

privoli
Jun 4th, 2000, 03:08 PM
Most organisations have free NTP servers, which you can connect to and get the time from their server, many such as csiro, nasa etc have these servers to use.

As far as I know you connect on port 17 and the server sends you its real time clock (atomic time) and you just simply set your pc to that time.

Look up NTP RFC's for exact info on correct syntax and workings of an NTP server and also a list of servers in your area for NTP servers. this is possible as i've done it before....