Rick Measham wrote:
> 
> If so, maybe a method inside Incomplete would be good:
>    if ($dti->can_be_datetime) {
>       $dti->become_datetime
>    }

I've put this in the TODO.
So this is the current list of proposed DT::Incomplete methods that are
"waiting for votes":

  * epoch
    $epoch = $dti->epoch  if $dti->can_be_datetime;

  * has_date / has_time

  * keys or defined_fields
    returns the list of names of "defined" fields

  * join( $dti )
    join the "defined" keys of two DT::Incomplete objects

  * is_incomplete / is_complete

  * can_be_datetime / become_datetime

- Flavio S. Glock

Reply via email to