Page 1 of 1

Can stealth Get GMT time use whatever language?

Posted: 19.11.2011 20:58
by roro4ever
Can stealth access Internet Time Server by socket whatever language .
I need get GMT time for use.

Many delphi component cant use in stealth's pascal script,like Winsocket.
So I think pascal can't call windows api ,really?
I ever saw somebody create a Tform windows in this forum,but i forget which language he use.pascal?python?

How about python of same requirement?
Python maybe could get GMT time or call windows api,but I am not familiar with python.

Re: Can stealth Get GMT time use whatever language?

Posted: 19.11.2011 23:38
by Alex
stealth api provides http client, so you can use some web-service to retrieve GMT time.

Code: Select all

res := HTTP_Post(StealthPageURL, PostList); //function HTTP_Post(URL : String; PostData: TStringList) : String
in python you can get gmt time like this:

Code: Select all

from datetime import datetime
dt = datetime.utcnow()

Re: Can stealth Get GMT time use whatever language?

Posted: 20.11.2011 9:26
by roro4ever
thank you .I will try both methods.