Branch: Tag:

2003-09-08

2003-09-08 16:28:17 by Johan Sundström <oyasumi@gmail.com>

Fraction()->set_timezone() now returns another Fraction, not a Second.
Fixed broken mirardoc capsing.

Rev: lib/modules/Calendar.pmod/Time.pmod:1.27

38:   string calendar_name() { return "Time"; }      //------------------------------------------------------------------------ - //! class TimeOfDay + //! class TimeofDay   //------------------------------------------------------------------------      class TimeofDay
1610:    }    else switch (args[0])    { +  case "timeofday": +  rules=[object(.Ruleset)]args[1]; +  ux=[int]args[2]; +  len=[int]args[3]; +  ls=CALUNKNOWN; +  ns=[int]args[4]; +  return;    case "unix":    rules=default_rules;    create_unixtime(@args[1..]);
1756:    return this_object();    }    +  TimeofDay set_ruleset(.Ruleset r) +  { +  return +  Fraction("timeofday",r,ux,len,ns) +  ->autopromote(); +  } +     TimeofDay _move(int n,int z_s,void|int z_ns)    {    if ((z_s==0 && z_ns==0) || n==0) return autopromote();