stock GetDayName() { new time =gettime()-1302300000; new daycount =7; while(time >=86400) { time-=86400; daycount++; if(daycount==8) daycount=1; } new name[11]; switch(daycount) { case1: name ="Monday"; case2: name ="Tuesday"; case3: name ="Wednesday"; case4: name ="Thursday"; case5: name ="Friday"; case6: name ="Saturday"; case7: name ="Sunday"; } return name; }
Pick the timestamp from any day you know at 00:00:00, and then calculate it to this date always. Take a loop and make always -86400, until you are under this timestamp you picked before, each time you make -86400 you raise another variable with 1, when it is 7, make it 1 again. 1= Monday, 2=Tuesday,... . By this you can calculate a day-name.
Understood that?