Re: SpanSet Issues and Requests

2003-10-13 Thread Flavio S. Glock
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

SpanSet Issues and Requests

2003-10-09 Thread Rick Measham
G'day Flavio, I'm doing some intensive SpanSet stuff and I'm thinking you might be able to answer a couple of questions: 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

Re: SpanSet Issues and Requests

2003-10-09 Thread Dave Rolsky
On Thu, 9 Oct 2003, Flavio S. Glock wrote: DT::SpanSet misses all these methods: next( $dt ) previous( $dt ) current( $dt ) closest( $dt ) as_list Is it ok to implement this in DT::SpanSet? Please do! /*=== House Absolute Consulting www.houseabsolute.com

Re: SpanSet Issues and Requests

2003-10-09 Thread fglock
I've done some diagrams, in order to check if you agree with the semantics of these SpanSet functions. Some of these operations can be interpreted in more than one way. If you think something should be different, please let me know. This is the notation used: [aaa] - a closed spanset or span