Getting Time (& date) from the internet into blitz

Community Forums/General Help/Getting Time (& date) from the internet into blitz

Matty(Posted 2010) [#1]
Good Morning,
Is it possible, with either blitz(plus) to get the time and date from an internet website, preferably with times from all over the world?
While I could just use the system time plus / minus 'x' hours/minutes for different regions that would not give me any indication of daylight savings or other time adjustments.


markcw(Posted 2010) [#2]
Is this what you mean?
http://www.codeproject.com/KB/vb/daytime.aspx


BlitzSupport(Posted 2010) [#3]
This site allows you to send a string requesting the date in certain formats -- don't know how reliable it is, how long it'll be there, etc...

Using their first example (see download$ below), this will download a text file containing the current time to "Unknown file.txt" in your Windows Temp folder -- see their site for other ways to get the time.

It'd be better in BlitzMax since you can read the stream without having to save the file first.



A Google for 'time api' should turn up similar ways to get the time.


Matty(Posted 2010) [#4]
Thanks very much.. I will try those solutions out and see how I go.