<[EMAIL PROTECTED]> schrieb/wrote:
> I want some feedback on the API, while I write some
> more tests. Then I'll write the implementation.

Well, I've already written some ideas about a possible API in
<news:[EMAIL PROTECTED]>.

The most important difference is that I'd like DateTime::Incomplete to
actually BE a DateTime: Methods defined by DateTime would just behave as
if the base date had been set to 1970-01-01T00:00:00.00...; new methods
(or parameters) would make up the interface to the precision fields.
So parsers could just return a DT::I object and calling code that does
not expect partial dates would still kinda work.

On the other hand, it would not be able to handle different calendars.
But then, I wonder if it's possible to just build a wrapper for all
DateTime::Calendar::* modules. Probably, all modules except
DT::C::Julian and DT::C::Christian (which do use 'year', 'month', 'day'
like DateTime) will need an own partial class anyway.

Claus
-- 
http://www.faerber.muc.de

Reply via email to