> my $safe_span = ...;        # Whatever you need
> my dt = DateTime->new(...);
> croak "Bad date range" if $safe_span->contains($dt);

In my [poor] example.  But what if you only wanted to only accept time values from 
11:00-18:00 across a span?

> In fact you may want the span to be a spanset to accomodate more fine
> grained controls.  Is this useful enough to merit a class?  I dunno.

I think it could be useful - I'm just not that sure about the syntax.

Cheers,

-J

--

Reply via email to