FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


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

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog
View previous topic :: View next topic  
Author Message
rasvprolog



Virginia-USA
Joined: 01 May 2014
Posts: 8

PostPosted: 3 Apr 2017 1:32    Post subject: Getting Time/Date info from a source other than the computer clock Reply with quote

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?

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

Thanks

_________________
FR
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3077

PostPosted: 4 Apr 2017 20:05    Post subject: Reply with quote

It is outside my expertise.
_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Paul Cerkez



Lexington Park MD, USA
Joined: 06 Mar 2000
Posts: 616

PostPosted: 5 Apr 2017 16:55    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
rasvprolog



Virginia-USA
Joined: 01 May 2014
Posts: 8

PostPosted: 6 Apr 2017 16:33    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Harrison Pratt



Des Moines, Iowa USA
Joined: 05 Nov 2000
Posts: 290

PostPosted: 6 Apr 2017 21:22    Post subject: Reply with quote

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/6435099/how-to-get-datetime-from-the-internet?noredirect=1&lq=1

You won't get a plug and play answer, but you'll get started on a path to doing it yourself.
Back to top
View user's profile Send private message
rasvprolog



Virginia-USA
Joined: 01 May 2014
Posts: 8

PostPosted: 7 Apr 2017 10:56    Post subject: Reply with quote

Thanks for your comments, I'll do.
_________________
FR
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum