> Oh, and while we're at it, can there be any way to set an undefined
> datetime object constructor:
>
> $undef = DateTime->undef();

If Dave OKs this it should be a separate class.  Probably DT::Undef.

> It's kind of like an infinite +/- datetime only its .. non existant!
>
> $dt < $dt_inf; # always true
> $dt > $dt_inf; # always false
>
> $dt < $dt_minus_inf; # always false
> $dt > $dt_minus_inf; # always true
>
> $dt < $dt_undef; # always false
> $dt < $dt_undef; # always false
> $dt < $dt_undef; # always false

Sounds reasonable to me.  I'd like to know what Flavio thinks about it.

-J

--


Reply via email to