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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pike:1084:       constant is_year=1;      // ---      //!   //! method void create("unix",int unix_time)   //! method void create("julian",int|float julian_day)   //! method void create(int year)   //! method void create(string year) - //! It's possible to create the standard week + //! It's possible to create the standard year   //! by using three different methods; either the normal   //! way - from standard unix time or the julian day,   //! and also, for more practical use, from the year number.   //!       void create(mixed ...args)    {    if (!sizeof(args))    {    create_now();
pike.git/lib/modules/Calendar.pmod/YMD.pike:1483:    }       string format_nice()    {    return sprintf("%s %s", month_name(), year_name());    }          string nice_print_period()    { -  if (!n) return day()->nice_print()+" 0:00 sharp"; +  if (!n) return day()->nice_print()+" "+minute()->nice_print()+" sharp";    cMonth mo=month(-1);    if (mo->y==y)    return sprintf("%s..%s %s",    month_shortname(),    mo->month_shortname(),    year_name());    return nice_print()+" .. "+month(-1)->nice_print();    }       cDay beginning()
pike.git/lib/modules/Calendar.pmod/YMD.pike:1785:    {    return    sprintf("%s %s",    week_name(),    year_name());    }          string nice_print_period()    { -  if (!n) return day()->nice_print()+" 0:00 sharp"; +  if (!n) return day()->nice_print()+" "+minute()->nice_print()+" sharp";    cWeek wo=week(-1);    if (wo->y==y)    return sprintf("%s..%s %s",    week_name(),    wo->week_name(),    year_name());    return nice_print()+" .. "+week(-1)->nice_print();    }       cDay beginning()
pike.git/lib/modules/Calendar.pmod/YMD.pike:2150:    year_name());    else    return    sprintf("%s %s",    month_day_name(),month_shortname());    }       string nice_print_period()    {   // return nice_print()+" n="+n+""; -  if (!n) return nice_print()+" 0:00 sharp"; +  if (!n) return nice_print()+" "+minute()->nice_print()+" sharp";    return nice_print()+" .. "+day(-1)->nice_print();    }       cDay beginning()    {    return Day("ymd_ydmw",rules,y,yjd,jd,yd,0,m,md,w,wd,mnd);    }       cDay end()    {