|
-
May 14th, 2004, 09:35 AM
#1
Thread Starter
Member
Internet Time
Hi,
Does anyone know of an api call or a way i can get the time and date form the internet. I dont want my application to read in the system data because the user may have changed the date in the system settings.
I know i could possible store the date and time when the computer was logged on and validate the time from there but surely there must be an API that will connect to the internet and return the time and date form there.
Ive noticed when i change the system date on my pc and restart the computer it always returns to the the original date. From looking at the settings on start up my date & time automaticall update from time.windows.com or something like that,
Anyone Help??
John
-
May 14th, 2004, 09:48 AM
#2
From "where" on the Internet?
-
May 14th, 2004, 09:55 AM
#3
theres no where specificly built on the net to store the time and date, you could make your own server and let users connect to it to get the correct time and date, and thats not that hard to do
-
May 14th, 2004, 09:58 AM
#4
Thread Starter
Member
If you look in control panel, date and time settings, and internet time, there is an option to automatically synchronise with an internet time server. in this box is the server's name time.windows.com.
When the pc starts up it retreives the time and date form this server and sets the system properties. After this a user can change the date themselves but once the computer is restarted the date and time will be back to the correct time and date.
If windows is retrieving this time surely there is an API call to this through VB???
Any help,
John
-
May 14th, 2004, 10:08 AM
#5
Lively Member
Here is an example of how to sycronize your program with the Atomic Clock server time.
I think this is what you want.
http://www.planetsourcecode.com/vb/s...10929&lngWId=1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|