SA-MP Forums Archive
Playing time using Unix Timestamp - 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: Playing time using Unix Timestamp (/showthread.php?tid=474206)



Playing time using Unix Timestamp - Camacorn - 06.11.2013

Hello,

I currently save my players total playing time via Unix Timestamp. However, I would like to convert it into a readable form, preferably hours. I tried using TimestampToDate by Jochemd, however this does not do what I require. I would like it to take the timestamp, and convert the seconds into minutes and hours.

For example, 3,600 seconds = 1 hour. I would like it to return that, I have tried searching the forums and have found nothing.

I appreciate any assistance I can get.


Re: Playing time using Unix Timestamp - Camacorn - 06.11.2013

- Resolved -