On 27/2/03 11:00 am, Dave Rolsky at [EMAIL PROTECTED] spake thus: > If each one takes different constructor params, then they're different > calendars, not just different formats for the _same_ calendar, right? > > But either way, call it "FrenchRevolutionary", I think.
OK, we can just as easily do it that way >> All the above will return the same for: >> $DT = $DTM->datetime_object() >> or whatever its called. > > Ack! Your calendar object is not responsible for returning other calendar > objects! That way lies madness. If there are 20 calendar modules, does > each one have 19 methods, each of which produces one other calendar? No, > that'd be a nightmare. > > All you have to implement is utc_rd_values and from_object. The former > method is called in any other calendar modules from_object() method, and > the latter method implements UTC RD -> metric calendar flavor conversion. heheh .. that's what I was trying to think of. I don't have my email archive with me to check what it was that it should return. Cheers! Rick -------------------------------------------------------- �� � � � � � There are 10 kinds of people: �� those that understand binary, and those that don't. -------------------------------------------------------- �� The day Microsoft makes something that doesn't suck �� � is the day they start selling vacuum cleaners --------------------------------------------------------
