SA-MP Forums Archive
Get the YDAY (1-366) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Get the YDAY (1-366) (/showthread.php?tid=145337)



Get the YDAY (1-366) - Trooper[Y] - 01.05.2010

Hey there.

I asked myself, how i can get the current day of the year (ranging from 1 (1st January) to 365 (31 December)).
I need it for some conversions and displays.

Any Ideas, how i can get the day/month ?

Regards,
Trooper


Re: Get the YDAY (1-366) - MaTrIx4057 - 01.05.2010

There are time/date functions in time.inc if this is what you needed.

native gettime(&hour=0, &minute=0, &second=0);
native getdate(&year=0, &month=0, &day=0);
native tickcount(&granularity=0);