19.09.2010, 17:21
Quote:
date() function - returns a current date in the following format: "day of month, year".. for today it would be "19th of September, 2010"...
Here you go: http://pastebin.com/SWLR7HuK |
pawn Код:
stock
date()
{
new
_month[][] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" },
_day[][] = { "st", "nd", "rd", "th" },
day,
month,
year,
output[24];
getdate(year, month, day);
format(output, sizeof output, "%d%s of %s, %i", day, (day > 3)?(_day[3]):(_day[day-1]), _month[month-1], year);
return output;
}