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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pmod:2143:    return Day("ymd_jd",rules,jd+x*step->n,n)    ->autopromote();       error("_move: Incompatible type %O\n",step);    }       TimeRange place(TimeRange what,int|void force)    {    if (what->is_timeofday)    { +  if (what->is_timeofday_f) +  { +  Second z= +  second(what->hour_no(), +  what->minute_no(), +  what->second_no()); +  return +  Fraction("timeofday_f",rules, +  z->unix_time(),what->ns,what->s_len,what->ns_len) +  ->autopromote(); +  } +  +  return second(what->hour_no(), +  what->minute_no(), +  what->second_no()) +  ->set_size_seconds(what->len); +  + #if 0    int lux=    what->ux-    Day("unix_r",what->unix_time(),what->ruleset())    ->unix_time();    -  +  werror("%O\n",lux); +     if (what->is_timeofday_f)    return    Fraction("timeofday_f",rules,    lux+unix_time(),what->ns,what->s_len,what->ns_len)    ->autopromote();       return Second("timeofday",rules,unix_time()+lux,what->len)    ->autopromote(); -  + #endif    }       if (what->is_year)    return year()->place(what,force); // just fallback    if (what->is_month)    return month()->place(what,force); // just fallback    if (what->is_week)    return week()->place(what,force); // just fallback       if (what->is_day)