SA-MP Forums Archive
Seconds passed between 2 dates - 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: Seconds passed between 2 dates (/showthread.php?tid=490105)



Seconds passed between 2 dates - hypZZ - 25.01.2014

Hi, how can I make a script that compares 2 dates(dd/mm/yy - h:m) and tell me how many seconds have passed between these two dates?

Thanks


Re: Seconds passed between 2 dates - erminpr0 - 25.01.2014

https://sampforum.blast.hk/showthread.php?tid=254915


Re: Seconds passed between 2 dates - Shetch - 25.01.2014

You can use 'gettime();'. It returns seconds passed since midnight 1st January 1970.
https://sampwiki.blast.hk/wiki/Gettime


Re: Seconds passed between 2 dates - hypZZ - 25.01.2014

Thank you!