Branch: Tag:

2000-10-18

2000-10-18 11:01:19 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

nulltimerange fix
added placement of time in weeks (using weekday and day placement)

Rev: lib/modules/Calendar.pmod/Time.pmod:1.6
Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.12
Rev: lib/modules/Calendar.pmod/YMD.pmod:1.15

1109:    }   }    + class cNullTimeRange + { +  inherit TimeRanges::cNullTimeRange; +  +  array(cHour) hours(int ...range) { return ({}); } +  cHour hour(void|int n) { error("no hours in nulltimerange\n"); } +  int number_of_hours() { return 0; } +  +  array(cMinute) minutes(int ...range) { return ({}); } +  cMinute minute(void|int n) { error("no minutes in nulltimerange\n"); } +  int number_of_minutes() { return 0; } +  +  array(cSecond) seconds(int ...range) { return ({}); } +  cSecond second(void|int n) { error("no seconds in nulltimerange\n"); } +  int number_of_seconds() { return 0; } +  +  string format_elapsed() { return "0:00:00"; } + } +    //------------------------------------------------------------------------   //! class Hour   //------------------------------------------------------------------------