Claus F�rber wrote:
> 
> Flavio S. Glock <[EMAIL PROTECTED]> schrieb/wrote:
> >   print $dtij->has( 'month' );
> >   # 0
> >   print $dtim->has( 'kin' );
> >   # 1
> >   print $dtim->get( 'kin' );
> >   # 8
> 
> We can also have autoloaded procedures like has_month(), get_month() or
> just month().

Yes, but I've seen some talk in this list, that autoloading is bad.
Anyone has opinions on this?

> > You can get a 'normal' DateTime by calling
> 
> >   $dtj2 = $dtij->to_datetime;
> >   $dtj2 = $dtij->to_datetime( base => $other_julian_base );
> >   $dtm2 = $dtim->to_datetime( base => $other_mayan_base );
> 
> There should be a way to specify whether the next, previous or nearest
> point in time relative to the base date is selected.

That's already possible using 

   $dt = $dti->to_recurrence->next( $base );
   $dt = $dti->to_recurrence->previous( $base );
   ...

And we could have it in the API as:

   $dt = $dti->next( $base );
   $dt = $dti->previous( $base );
   ...

I think it is possible to make it work with other Calendars - I'll
check.

- Flavio S. Glock

Reply via email to