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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/YMD.pmod:123:   // --- query      //! method float fraction_no()   //! method int hour_no()   //! method int julian_day()   //! method int leap_year()   //! method int minute_no()   //! method int month_day()   //! method int month_no()   //! method int second_no() - //! method int unix_time() +    //! method int utc_offset()   //! method int week_day()   //! method int week_no()   //! method int year_day()   //! method int year_no()   //! method string month_name()   //! method string month_shortname()   //! method string month_day_name()   //! method string week_day_name()   //! method string week_day_shortname()   //! method string week_name()   //! method string year_name()   //! method string tzname()   //! method string tzname_iso()       int julian_day()    {    return jd;    }    -  + //! function method int unix_time() + //! Returns the unix time integer corresponding to the start + //! of the time range object. (An unix time integer is UTC.) +     int unix_time()    {   // 1970-01-01 is julian day 2440588    int ux=(jd-2440588)*86400;    if (utco==CALUNKNOWN)    [utco,tzn]=rules->timezone->tz_jd(jd);    return ux+utco;    }       int utc_offset()