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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pmod:1918:      // --- needs to be defined       static int weeks_to_week(int y,int m);   }      // ----------------------------------------------------------------   // Day   // ----------------------------------------------------------------    - function(mixed...:cDay) Day=cDay; +    class cDay   {    inherit YMD;       constant is_day=1;    int nw;      //!   //! method void create("unix",int unix_time)   //! method void create("julian",int|float julian_day)
pike.git/lib/modules/Calendar.pmod/YMD.pmod:2251:    cDay set_ruleset(Ruleset r)    {    return Day("ymd_ydmw",r,y,yjd,jd,yd,n,m,md,w,wd,mnd);    }      // backwards compatible with calendar I    string iso_name() { return format_ymd(); }    string iso_short_name() { return format_ymd_short(); }   }    + function(mixed...:cDay) Day=cDay; +    //------------------------------------------------------------------------   //- class YMD_Time   //------------------------------------------------------------------------      class YMD_Time   {   #define MKRBASE \    do \    { \    int n; \