Results 1 to 5 of 5

Thread: Internet Time

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2003
    Posts
    34

    Question 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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    From "where" on the Internet?

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787
    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

  4. #4

    Thread Starter
    Member
    Join Date
    Jul 2003
    Posts
    34
    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

  5. #5
    Lively Member
    Join Date
    Aug 2003
    Location
    Philadelphia, Pa.
    Posts
    123
    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
  •  



Click Here to Expand Forum to Full Width