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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pike:1103:       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) + //! method void create(TimeRange range)   //! 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))    {
pike.git/lib/modules/Calendar.pmod/YMD.pike:1249:    if (step->is_ymd)    return Day("ymd_jd",rules,    yjd+m*step->number_of_days(),number_of_days())    ->autopromote();       error("_move: Incompatible type %O\n",step);    }       static void convert_from(TimeRange other)    { +  if (other->y) +  create(other->y); +  else    ::convert_from(other);    if (other->number_of_years)    n=other->number_of_years();    else    n=0;    }       TimeRange place(TimeRange what,void|int force)    {    if (what->is_day)