SA-MP Forums Archive
Current time to UNIXTIMESTAMP - 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: Current time to UNIXTIMESTAMP (/showthread.php?tid=531673)



Current time to UNIXTIMESTAMP - .EnjatsRed. - 13.08.2014

Hi guys! Can any1 give ma an idea how to convert current time( gettime() ) to unixtimestamp?


Re: Current time to UNIXTIMESTAMP - Stinged - 13.08.2014

pawn Код:
new time = gettime();
printf("Time: %i", time);
Should print a unix timestamp.


Re: Current time to UNIXTIMESTAMP - .EnjatsRed. - 14.08.2014

Quote:
Originally Posted by Stinged
Посмотреть сообщение
pawn Код:
new time = gettime();
printf("Time: %i", time);
Should print a unix timestamp.
Yeaaa man . Thank you very much, didn't notice that.