Dan Kubb wrote:
>
> I recently worked on a project where I had to keep track of data
> that changed over time. I needed to keep a history of the
> changes, as well as allow values to be specified for future
> time periods.
DateTime::TemporalValue
082: #Class::Multimethods could really clean this up, but it doesn't
work
083: #under mod_perl yet, so I can't use it.
How about (untested):
my $spanset = DT::SpanSet->empty_set->union( @_ );
from the docs:
Set operations may be performed not only with
DateTime::SpanSet objects, but also with DateTime,
DateTime::Set and DateTime::Span objects.
- Flavio S. Glock