04.03.2012, 14:55
I want to get the real date and time in my country but not with gettime and getdate... there is and includ or plugin?
Thanks
Thanks
stock getRealTime(&hr, &min, &sec, timeDiff) {
new Hour, Minute, Second;
gettime(Hour, Minute, Second);
hr = (Hour + timeDiff);
min = Minute;
sec = Second;
}
new Hour, Minute, Sec;
getRealTime(Hour, Minute, Sec, -1);
printf("%d | %d | %d", Hour, Minute, Sec);
getRealTime(Hour, Minute, Sec, -2);
getRealTime(Hour, Minute, Sec, -AMOUNT_OF_TIME_BEHIND);