PDA

View Full Version : time.nist.gov



NewsArchive
10-14-2007, 02:00 PM
I have just implemented a check subscription key in my Clarion app. However
Friedrich referred to checking the above URL to get the atomic time as users
may set their clocks back.

My users are all over the world so need to return a date or time according
to their local region. Note, they travel around the world so the system time
can change. i.e. they could well change it.

Also how would you implement this. I know the SB script command exists but
is it simply a matter of checking that the system time is the same as the
atomic time and if not halt?

If so then surely we need to use the date and not the time.

TIA

John Fligg

NewsArchive
10-16-2007, 02:22 AM
> My users are all over the world so need to return a date or time
> according to their local region.

I haven't tried this, but you might be able to use the Windows API
SystemTimeToTzSpecificLocalTime function. Load the time into a
SystemTime structure and then call the function to get the local time.
See http://msdn2.microsoft.com/en-us/library/ms724949.aspx

--

Dave

Clarion Magazine: http://www.clarionmag.com
In-depth Clarion articles, news, tips & tricks, printed books and e-books