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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Time.pmod:1500:    {    ux=(int)unixtime;    ns=(int)(inano*(unixtime-(int)unixtime));    len_s=(int)_len;    len_ns=(int)(inano*(_len-(int)_len));    ls=CALUNKNOWN;    }       static void create_unixtime_default(int|float unixtime)    { -  return create_unixtime(unixtime); +  create_unixtime(unixtime);    }       float julian_day()    {    return 2440588+(ux+ns*(1.0/inano))*(1/86400.0)+0.5;    }       static void create_julian_day(int|float jd)    {   // 1970-01-01 is julian day 2440588
pike.git/lib/modules/Calendar.pmod/Time.pmod:1815:   }      //! method Calendar set_ruleset(Ruleset r)   //! method Ruleset ruleset()   //! Set or read the ruleset for the calendar.   //! <ref>set_ruleset</ref> returns a new calendar object,   //! but with the new ruleset.      this_program set_ruleset(Ruleset r)   { -  this_program c=object_program(this_object())(); + // "this_program" here ceased to work +  object c=object_program(this_object())();    c->default_rules=r;    return c;   }      Ruleset ruleset()   {    return default_rules;   }