Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Server Date & Time
Message
From
10/06/2003 09:51:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
10/06/2003 09:43:47
Issam Mansour
Jordan Business Machines
Amman, Jordan
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00798341
Message ID:
00798347
Views:
19
>Hi,
>
>is there any declare command to get the server date and time.
>
>Best Regards

I used one method which is often suggested here on the UT, and it works for me:

  • Create a file on the server.
  • Get the file's date and time. This will return the date/time of the server, not of the workstation.
  • Delete the temporary file.

    You can use sys(2015) to create a unique file-name (to avoid conflicts with other users).

    One way to create the file is with fcreate().

    HTH,

    Hilmar.
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Previous
    Reply
    Map
    View

    Click here to load this message in the networking platform