Skip to content
Snippets Groups Projects
Commit 9752da18 authored by Mirar (Pontus Hagland)'s avatar Mirar (Pontus Hagland)
Browse files

foo! Day(time_t) added again..

Rev: lib/modules/Calendar.pmod/Gregorian.pmod:1.12
parent 89741b55
No related branches found
No related tags found
No related merge requests found
...@@ -587,12 +587,6 @@ class Day ...@@ -587,12 +587,6 @@ class Day
//-- variables ------------------------------------------------------ //-- variables ------------------------------------------------------
int y; int y;
int d; int d;
...@@ -616,6 +610,12 @@ class Day ...@@ -616,6 +610,12 @@ class Day
y=1900+t->year; y=1900+t->year;
d=t->yday; d=t->yday;
} }
else if (sizeof(arg)==1)
{
mapping t=localtime(arg[0]);
y=1900+t->year;
d=t->yday;
}
else else
{ {
y=arg[0]; y=arg[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment