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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Event.pmod:1021:    [int new_jd, float offset] = solar_event(y);       if ((direction > 0) && (new_jd < jd)) {    [new_jd, offset] = solar_event(y + 1);    } else if ((direction < 0) && (new_jd >= jd)) {    [new_jd, offset] = solar_event(y - 1);    }       // Convert into an UTC timestamp.    int utc = (new_jd - 2440588)*86400 + (int)(offset * 86400.0); -  return utc - (int)round(Calendar.ISO.deltat(utc)); +  return utc - (int)round(.ISO.deltat(utc));    }       Calendar.TimeRanges.TimeRange next(void|Calendar.TimeRanges.TimeRange from,    void|int(0..1) including)    {    if (!from) from=std_day();    int jd;    if (including) jd=(int)(from->julian_day());    else jd=(int)(from->end()->julian_day());    int utc = scan_jd(from->calendar(),jd-nd+1,1);