ALL!... Except Graal.
PHP Code:
function date()
{
this.time = int(timevar2);
this.day = int(int(this.time/(60*60*24))%365.242199);
this.month := find_month(this.day);
this.year = 1970 + int(this.time/(60*60*24*365.242199));
return this.month[0] @ "/" @ (this.month[1] + 1) @ "/" @ this.year;
}
function find_month(day)
{
i := 0;
while (true)
{
if (day < days_in_month(i))
return {day,i};
day -= days_in_month(i);
i ++;
}
}
function days_in_month(month)
{
return (month == 1 ? 28 : 30 + (month % 2));
}
I don't have it leap years intergrated, but the next leap year is in three years. This is what I made
