pike.git / lib / modules / Calendar.pmod / Gregorian.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Gregorian.pmod:1163:    {    if (!sizeof(arg))    {    mapping t=localtime(time());    m=vMinute();    s=t->sec;    }    else if (sizeof(arg)==1)    {    mapping t=localtime(arg[0]); -  y=1900+t->year; -  d=t->yday; +  m=Year(1900+t->year)->month(1+t->mon)->day(t->mday)-> +  hour(t->hour)->minute(t->min); +  s=t->sec;    }    else    {    if (!objectp(arg[0]))    throw( ({"Calendar...Second(): illegal argument 1\n",    backtrace()}) );    m=arg[0];    s=arg[1];    }    }