Getting Time (& date) from the internet into blitz
Community Forums/General Help/Getting Time (& date) from the internet into blitz
| ||
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. |
| ||
Is this what you mean? http://www.codeproject.com/KB/vb/daytime.aspx |
| ||
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. |
| ||
Thanks very much.. I will try those solutions out and see how I go. |