Eugene van der Pijll wrote:
>
> I would prefer if this:
> 
>     DateTime::Incomplete->new( year => 2003 );
> 
> would create the incomplete dt 
> 2003-xx-xxTxx:xx:xx; that is: the
> defaults of the DT::I constructor should be 
> 'unknown'. That simplifies the creation of DT::I 
> objects, and is the most intuitive solution.
> 
> I don't know what implementation you're thinking 
> of, but I'd like to be able to say
> 
>     DateTime::Incomplete->new( year => 1534, 
>         calendar => 'Julian' );

Both ideas sound ok. 

I'm not sure about the implementation yet - 
that's why I started writing the tests first.

Dave Rolsky wrote:
> It looks like Flavio's DT::Incomplete fits the 
> bill, doesn't it?

But if all you need is an "error" object,
you might want to have a simpler, "undef-only" 
module.

BTW: What do you think the incomplete datetime() 
should print?
I've been using 2003-xx-xxTxx:xx:xx

- Flavio S. Glock


Reply via email to