I have server time
int time
It should show what time it is right now on that server.
I should also someone extract all those informations like
day of the week, year etc.. from that variable.
here's how i calculate: day of the week, hour and minutes
[php]
// 0- Sunday, 1 - monday ... 6 -Saturday
inline int GetDay(int time)
{
int d = (time % 604800) / 86400;
d += 4;
if (d > 6) d = d - 7;
return d;
}