Getting the time from a remote source

JeffreyDriver

  • *
  • Posts: 2152
I'm aware of the Date Extension and I'm currently tinkering with it. I assume that it gets the device time, and so it could be cheated?

Is there a way to get the time from somewhere else, such as the world clock?
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

CmdrWhitey13

  • Posts: 503
https://www.timeanddate.com/services/api/

Might help if ood on the coding side. Gives an API to pull data from.

squeeb

  • Posts: 1547
Nice find.  Google has an api also.  Justin taught me how to parse json data to attributes.  I can help out if needed.  Lemme know. :)

JeffreyDriver

  • *
  • Posts: 2152
Thanks guys. I knew about the first one, but I hadn't thought about Google to be honest. That looks promising.

https://developers.google.com/maps/documentation/timezone/start - this shows tells you more about it and shows an example json response.

https://developers.google.com/maps/documentation/timezone/intro#Responses - this explains how to interpret the data. That bit seems pretty straight forward.
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk