Results 1 to 2 of 2

Thread: Sychronise Time

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Cool

    How can one get the current date and time from Unix/NT server, from my VB5 application, running in Win95/Win98/Win2k?

    Any idea? Any experience before?

    Thanks

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Canada
    Posts
    264
    if you know some ASP, you can make an ASP page that would just show the time on the server, than from your program, you can use the internet transfer control to retrieve the page and parse it to get the time, it is pretty easy to make.

    text1.text = inet1.openURL ("www.xxx.com")

    this will put the content inside a textbox.

    what you can do is to put it in a string varaiable, and since the only thing that the varaible will contain is the time, it will be very easy to convert it to time.

    if you are not sure, please say so.

    In the beginning the universe was created. This has made a lot of people very angry and is generally regarded as a bad idea.

    - Douglas Adams
    The Hitchhiker's Guide to the Galaxy

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