get year,month,day from 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: get year,month,day from timestamp (
/showthread.php?tid=623860)
get year,month,day from timestamp -
MerryDeer - 06.12.2016
Hi,
What is good function to get year,month,day, hour,minute from timestamp?
Re: get year,month,day from timestamp -
oMa37 - 06.12.2016
TimestamptoDate.inc
****** it.
Re: get year,month,day from timestamp -
TheRohlikar - 06.12.2016
Try ...
https://sampwiki.blast.hk/wiki/Getdate
And maybe that ...
https://sampwiki.blast.hk/wiki/Gettime
And here you go.
Re: get year,month,day from timestamp -
MerryDeer - 06.12.2016
TimestamptoDate.inc
This function works with any stamp?
Re: get year,month,day from timestamp -
oMa37 - 06.12.2016
Yes.
PHP код:
TimestampToDate(Timestamp, &year, &month, &day, &hour, &minute, &second, HourGMT, MinuteGMT = 0)