Discussions related to Visual Prolog
rasvprolog
Active Member
Posts: 31
Joined: 1 May 2014 3:28

Getting Time/Date info from a source other than the computer clock

Unread post by rasvprolog »

Hi

The following clauses get date/time, I guess from the computer's clock (which can be manually manipulated or inaccurate). Is there any way to get the date info from a more reliable source such as web browser?

Code: Select all

Time = time::new(), Time:getDate(ThisYear, ThisMonth, ThisDay),

Thanks
FR
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

It is outside my expertise.
Regards Thomas Linder Puls
PDC
Paul Cerkez
VIP Member
Posts: 106
Joined: 6 Mar 2000 0:01

Unread post by Paul Cerkez »

Like Thomas, not in my area of expertise, BUT I believe if they are connected to the internet (or corporate network), time can be pulled form a Corporate Server or from an internet 'clock' (there are a few of these).

https://time.is/about

www.time.gov

tf.nist.gov/tf-cgi/servers.cgi

do a google search on "internet source of accurate time" It will provide a lot of resources.
AI Rules!
P.
rasvprolog
Active Member
Posts: 31
Joined: 1 May 2014 3:28

Unread post by rasvprolog »

Thanks for your feedback.
My question is even if somehow one get access to an accurate time, how can you force the above clauses to get the time from that source not the computer clock.
Best regards,
FR
Harrison Pratt
VIP Member
Posts: 439
Joined: 5 Nov 2000 0:01

Unread post by Harrison Pratt »

Sometimes it helps to search the .NET and C# discussion groups to get a hint. Of course, you will need to puzzle out the translation from C# or other language to VIP. You might start your quest here:

http://stackoverflow.com/questions/6435 ... ect=1&lq=1

You won't get a plug and play answer, but you'll get started on a path to doing it yourself.
rasvprolog
Active Member
Posts: 31
Joined: 1 May 2014 3:28

Unread post by rasvprolog »

Thanks for your comments, I'll do.
FR
Post Reply