Dave Rolsky schreef:
> On Wed, 2 Apr 2003, Jean Forget wrote:
> > For the moment, there are two sets of accessors:
> > - hour, min, second, etc for sexagesimal time
> > - dhour, dmin and dsecond for decimal time

IMHO, this is the way to go.

> > but strftime knows only decimal time.

I think it should, with its own codes. Perhaps using a modifier:
%H = sexagesimal hour,   %fH = decimal ('french') hour
%M = sexagesimal minute, %fM = decimal ('french') minute
%S = sexagesimal second, %fS = decimal ('french') second

> > 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.

Decimal time was used by the system, but not by the users of the system.
For actual usage, a default of 60imal time would be better.

> I don't know that it's worth
> offering sexagesimal time, since people can always use
> DateTime->from_object to get that.

DT::C::FR has to be able to convert to 60imal time anyway, for
utc_rd_values(). (The second return value of this method should be in
SI-seconds, 1/86_400 of a day; not metric seconds, 1/100_000 of a day.)

> > 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?

You could make aliases, and let the users make the choice.

Will your module contain the names of the days? Like 'Brocoli' (12
Pluviose) or 'Pomme de terre' (22 Vendemiaire)?

Eugene

Reply via email to