Rick Measham wrote:
>
> I'm trying to get next/previous spans from a given DateTime. I'm
> defining next/previous as the event who started before or after $dt.
> Where it ends doesn't matter, even if we're still in the middle of the
> event.
Rick:
Did you get it working?
I'm starting the implementation of DateTime::SpanSet next/previous.
I'll use these definitions:
next - first span of
$set->intersection( DT::Span->from_datetimes( after => $dt ) )
previous - last span of
$set->intersection( DT::Span->from_datetimes( before => $dt ) )
- Flavio S. Glock