aa2zz6 Posted June 26, 2017 Share Posted June 26, 2017 I'm trying to gather a timestamp from another timezone but my results isn't displaying from what's on the website. I figured the inetread would pull the current timestamp and display the time using a consolewrite. Local $timeStamp = InetRead("https://time.is/UTC") ConsoleWrite("Current Time: " & $timeStamp) Link to comment Share on other sites More sharing options...
Danp2 Posted June 27, 2017 Share Posted June 27, 2017 Looks like the site adjusted the time for the current timezone. Here a thread where multiple options are offered for retrieving the time -- Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
aa2zz6 Posted June 27, 2017 Author Share Posted June 27, 2017 (edited) Thanks Danp2 I found this piece on the AutoIt forums that helped. This piece in particular help ; Convert system time to local time $tSystem = _Date_Time_GetSystemTime() $tLocal = _Date_Time_SystemTimeToTzSpecificLocalTime($tSystem) https://www.autoitscript.com/autoit3/docs/libfunctions/_Date_Time_TzSpecificLocalTimeToSystemTime.htm Edited June 27, 2017 by aa2zz6 Link to comment Share on other sites More sharing options...
moimon Posted July 2, 2017 Share Posted July 2, 2017 $timestamp = BinaryToString(InetRead('http://www.convert-unix-time.com/api?timestamp=now')) Try this ^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now