Re: working on the as_set portion of the sunrise module

2003-03-28 Thread Flavio S. Glock
Hill, Ronald wrote: > > > sub daytime_as_spanset { > > > my $self = shift; > > > my $class = ref($self); > > > my $sunrises = $self->sunrise_as_set; > > > my $sunsets = $self->sunset_as_set; > > > return $sunrises->until( $sunsets ); > > > } > > maybe sunrise_as_spanset? (

RE: working on the as_set portion of the sunrise module

2003-03-28 Thread Hill, Ronald
> > Hill, Ronald wrote: > > > > sub daytime_as_spanset { > > > > my $self = shift; > > > > my $class = ref($self); > > > > my $sunrises = $self->sunrise_as_set; > > > > my $sunsets = $self->sunset_as_set; > > > > return $sunrises->until( $sunsets ); > > > > } > > > > ma

Re: working on the as_set portion of the sunrise module

2003-03-28 Thread Flavio S. Glock
Hill, Ronald wrote: > That would be great! I sure hope you can finish the API > so I can try it out!! If you want to try it _before_ we have an API, you can do it the undocumented way: Let's say you already have a $sunrise_set and a $sunset_set, since recurrence-sets are in the DateTime::Set API.

RE: working on the as_set portion of the sunrise module

2003-03-31 Thread fglock
I've finally got the set generation (sunrise, sunset) and span-set (daylight time, night time) working properly. http://www.geocities.com/fglock/sunrise_test.tar.gz Require latest DateTime::Set/Span/SpanSet from CVS. - Flavio S. Glock