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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Time.pmod:396:   //!   //! <ref>number_of_minutes</ref>() simple counts the   //! number of minutes containing the called time period.   //!       cMinute minute(void|int n)    {   // minutes are on the day, adjust for timezone (non-full-minute timezones!)    if (ls==CALUNKNOWN) make_local();    int zx=ux-ls%60; -  werror("ux %O %O zx %O\n",ux,ls%60,zx); +        if (!n || (n==-1 && !len))    return Minute("timeofday",rules,zx,60);    if (n<0) n=number_of_minutes()+n;    if (n<0 || n*60>=len+ux-zx)    error("minute not in timerange (minute 0..%d exist)\n",(len-1)/60);    return Minute("timeofday",rules,zx+60*n,60)->autopromote();    }       int number_of_minutes()
pike.git/lib/modules/Calendar.pmod/Time.pmod:1250:   class cMinute   {    constant is_minute=1;      //! inherits TimeofDay       inherit TimeofDay;       static void create_unixtime(int _ux,int _len)    { -  werror("%O\n",_ux); +     ::create_unixtime(_ux,_len);    if (ls==CALUNKNOWN) make_local();    ux-=ls%60;    }       void create_unixtime_default(int unixtime)    {    create_unixtime(unixtime,60);    }