Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

HttpService, how to get the time and date from this website?

Asked by
StoIid 364 Moderation Voter
7 years ago
Edited 7 years ago

I am trying to see which method is better for getting time and date, using OS time for getting time AND date provided by a website Website I am using.

I have never used HttpService and now trying to learn. From the wiki I was able to write this.

hs = game:GetService('HttpService')
test = hs:GetAsync('http://time.is/New_York', true)

From what I know, the first line references the HttpService and the second line gets the HTML text from the webpage.

What I am asking to do now is how would I get the time and date from the website's clock?

Link to Site

Answer this question