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? (
>
> 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
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.
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
Hi Flavio,
[snipped]
>
> Hi,
>
> I'm sorry to bother you, but I really need to know if this makes sense
> to you.
No bother at all, mail from you or Dave is always welcome :-)
I have looked at the changes that you have provided and there
are some points that I simply don't understand. Bear in