Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Can stealth Get GMT time use whatever language?

Post Reply
roro4ever
Posts: 2
Joined: 17.09.2011 6:54

Can stealth Get GMT time use whatever language?

Post 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.
Alex
Moderator
Moderator
Posts: 351
Joined: 07.04.2005 4:41

Re: Can stealth Get GMT time use whatever language?

Post 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()
Новый стелс лежит тут. Стелс это произведение искусства! :)
roro4ever
Posts: 2
Joined: 17.09.2011 6:54

Re: Can stealth Get GMT time use whatever language?

Post by roro4ever »

thank you .I will try both methods.
Post Reply