Getting UNIX timestamp with HTTP function. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Getting UNIX timestamp with HTTP function. (
/showthread.php?tid=297890)
Getting UNIX timestamp with HTTP function. -
WooTFTW - 18.11.2011
I am not familiar with HTTP functions, nor i know how they work, so i am asking if it's possible.
If yes, how?
I am using MySQL to get current UNIX timestamp, but there should be an better way
Re: Getting UNIX timestamp with HTTP function. -
Simon - 18.11.2011
Quote:
Originally Posted by Skorch
I am not familiar with HTTP functions, nor i know how they work, so i am asking if it's possible.
If yes, how?
I am using MySQL to get current UNIX timestamp, but there should be an better way 
|
It is possible if you write or find an appropriate web service to do it.
If you want the time stamp for now then you don't need HTTP. Use the return value of gettime
https://sampwiki.blast.hk/wiki/Gettime
Re: Getting UNIX timestamp with HTTP function. -
WooTFTW - 18.11.2011
Quote:
Originally Posted by Simon
It is possible if you write or find an appropriate web service to do it.
If you want the time stamp for now then you don't need HTTP. Use the return value of gettime
https://sampwiki.blast.hk/wiki/Gettime
|
Thanks, gettime function will do

Didn't notice that it returns UNIX timestamp