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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Event.pmod:1106:    //! Returns unixtime in UTC to avoid losing the decimals!    int scan_jd(Calendar.Calendar realm, int jd, int(1..1)|int(-1..-1) direction)    {    [int y, int yjd, int leap] = gregorian_yjd(jd);       [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)) { -  [int new_jd, offset] = solar_event(y - 1); +  [new_jd, offset] = solar_event(y - 1);    }       // Convert into an UTC timestamp.    int utc = (new_jd - 2440588)*86400 + (int)(offset * 86400.0);    return utc - deltat(utc);    }       Calendar.TimeRanges.TimeRange next(void|Calendar.TimeRanges.TimeRange from,    void|int(0..1) including)    {