On 27/2/03 9:41 am, Eugene van der Pijll at [EMAIL PROTECTED] spake thus: > Rick Measham schreef: >> Just a heads up to people interested in a Metric module: I'm working on one.. > > Which one? A google search turns up dozens of them: the French > Republican is one, for example; Stardates are another; the Caltech > is a particularly nice one... > > Eugene
I'll create DateTime::Calendar::Metric which will just work with AD (CE) years and days (as a float). This is a basic way of working with all Metric times. $DTM = DateTime::Calendar::Metric->new(year=>2003, day=>58.5); Then I'll work on DateTime::Calendar::Metric::Revolutionary (or DateTime::Calendar::Metric::Format::Revolutionary -- Dave?) which will extend the Metric system to understand months/weeks/hours/mins/secs in the various formats. $DTM = DateTime::Calendar::Metric::Revolutionary->new(year=>211, month=>6 day=>8, hour=>5, minute=>0, second=>0); $DTM = DateTime::Calendar::Metric::Swatch->new(year=>2003, month=>2 day=>27, beat=>500); $DTM = DateTime::Calendar::Metric::Twenty->new(year=>2003, month=>2 day=>27, hour=>10, minute=>0, second=>0); $DTM = DateTime::Calendar::Metric::Twenty->new(year=>2003, day=>58, hour=>10, minute=>0, second=>0); (months will be optional .. just provide a year and a day and the month will be calculated) All the above will return the same for: $DT = $DTM->datetime_object() or whatever its called. -------------------------------------------------------- �� � � � � � 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 --------------------------------------------------------
