View Full Version : Date from NIST server
Richard Hearsey
03-13-2009, 02:58 AM
For purposes of license validation, I want to get from within my Fortan code a tamper-proof date. The NIST Daytime Protocol (RFC-867) would be a good source. How can I access these data? Thanks.
tzeis
03-18-2009, 04:43 AM
Windows has a built-in client that can connect to the NIST server. Check out this publication for more info: http://www.boulder.nist.gov/timefreq/service/pdf/win2000xp.pdf
You should check out the capabilities of NET TIME, which you can run from Fortran using the SYSTEM procedure.
Alternatively, you might want to look for NTP client software with source that you could use to create a Fortran callable function.
Richard Hearsey
03-18-2009, 09:00 PM
I did not find any reference to anything that will tell ME the time/date; everything appears to set the computer's clock. I can't do that on a clients machine.
On my machine, "NET TIME" generates "Could not locate a time-server". The suggested help-file call generates the same response!
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.