On Wed, 2 Apr 2003, Jean Forget wrote: > As I told long ago (January 2003), the French Revolutionary > calendar included a reform to decimalize time counting, > with 10 hours per day, 100 minutes per hour and 100 seconds per > minute. But this reform was never put into effect. So, > my module should give access to both sexagesimal time (historically > correct) and decimal time (interesting and fun). > > For the moment, there are two sets of accessors: > - hour, min, second, etc for sexagesimal time > - dhour, dmin and dsecond for decimal time > but strftime knows only decimal time. > > Another way would be to use only one set of accessors, plus a method > choose_time_counting > or two opposite methods > choose_decimal_time > choose_sexagesimal_time > and all methods: hour, minute, second, strftime would obey the last > setting.
The default for hour, minute, second, and such should be decimal, because that's what the system used natively. I don't know that it's worth offering sexagesimal time, since people can always use DateTime->from_object to get that. > Another question: the 7-day weeks were replaced by 10-day d�cades. > Should I keep the "week_number", "week_year" etc methods, which are > inaccurately named, or should I use "decade_number", "decade_year" > which might confuse English speakers (because in English, the same > word means 10 years)? Or should I propose both? There is absolutely no reason you should feel compelled to offer the full DateTime.pm interface. Offer what makes sense for _your_ calendar. The Julian calendar is actually a really _bad_ example for other calendar module authors, because it's API is almost identical to the Gregorian calendar (DateTime.pm). Most other calendars will have a greater departure from the DateTime.pm API. > Lastly, in accordance to CPAN rules, I should ask your advice about > naming my module. But > http://datetime.perl.org/developer/calendar.html > makes it crystal-clear: it should be named > DateTime::Calendar::French_Rev.pm > If you still have any remarks about this... Can you call it DateTime::Calendar::FrenchRevolution (or FrenchRevolutionary)? I can't stand underscores in module names and I'm not a big fan of abbreviations (that's discussed a bit in the development standards doc). -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/
