Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A way to change system date/time programatically from VF
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00135525
Message ID:
00135885
Views:
10
No. GetSystemTime() returns the time of the current computer/workstation in UNC/GMT. (it works on Win NT, too)

Vlad


>I don't have access to an NT Server, so what I'm about to write applies to Win95/98. Vlad can verify whether or not it works on NT, I think.
>
>You can use GetSystemTime() as I mentioned previously to retrieve this information. You should note that it returns the time in Universal Coordinated Time (or GMT). Here's the declaration you'll need:
>DECLARE GetSystemTime IN Win32API;
>  STRING @lpSystemTime
>* lcsystime is a 16 byte empty string
>= GetSystemTime(lcsystime)
>The function does not return a value. The structure returned will be in the format mentioned earlier in this thread. You'll have to convert each of the individual members to retrieve the values you need.
>
>hth,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform