General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2008 Server
>>>Hi Gang!
>>>
>>>Do you have any code that gets the UTC time form the operating system?
>>>
>>>Thanks!
>>
>>IIRC the idea is to get the time offset from the OS (no direct UTC function IIRC) and add that to the OS time. I've done it before in VFP (long long ago). I'll check my source if you don't get a good answer by evening..
>
>sounds good!
It's better to use call to API that returns UTC (there is one -- GetSystemTime() ). Trying to fiddle with time offsets doesn't work too well when you're within that 1-hour window on the transition from Daylight to Standard time where local time repeats.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only