Branch: Tag:

1998-04-29

1998-04-29 20:53:18 by Johan Schön <js@opera.com>

Added more functions to class second

Rev: lib/modules/Calendar.pmod/Gregorian.pmod:1.11

1157:       array(string) greater()    { -  return ({"minute"}); +  return ({"minute","hour","day","month","year"});    }       array(string) lesser()    { -  return ({"second"}); +  return ({});    }       void create(int|object ... arg)
1298:    return sprintf("%s:%02s",m->timeofyear(),name());    }    - //-- more ----------------------------------------------------------- + //-- greater --------------------------------------------------------       object minute()    {    return m;    } -  +  +  object hour() +  { +  return minute()->hour(); +  } +  +  object day() +  { +  return minute()->hour()->day(); +  } +  +  object month() +  { +  return minute()->hour()->day()->month(); +  } +  +  object year() +  { +  return minute()->hour()->day()->month()->year(); +  } +    };