Scott,

The TimeOfDay range expression was a bad design and it didn't work, so it was replaced with MinuteRange and HourRange.

It looks like you might be trying to combine a temporal expression with a duration. Does the event keep repeating from 05:00 to 08:30? Or does it occur at 05:00 and have a duration of 3.5 hours? Keep in mind the Temporal Expression indicates when an event occurs, not how long it lasts.

-Adrian

On 1/30/2011 6:47 PM, Scott Gray wrote:
Hi Adrian (I assume you're the only one that knows...),

In the original jira issue for the temporal expression implementation there was 
mention of a TimeOfDayRange expression 
(http://markmail.org/message/pz2i3kzavcnee4ca) but I can't seem to find a 
corresponding class in the trunk?

I'm looking to model something along the lines of:
Intersection:
     DayOfWeekRange(Monday, Friday)
     Union:
         TimeOfDayRange(5:00, 08:30)
         TimeOfDayRange(17:30, 22:30)

At the moment the only way I can see to do this is with something quite complex 
like:
Intersection:
     DayOfWeekRange(Monday, Friday)
     Union:
         Union:
             HourOfDayRange(5:00, 08:00)
             Intersection:
                 HourOfDayRange(08:00, 08:00)
                 MinuteOfDyRange(0, 30)
         Union:
             Intersection:
                 HourOfDayRange(17:00, 17:00)
                 MinuteOfDyRange(30, 59)
             HourOfDayRange(18:00, 22:00)
             Intersection:
                 HourOfDayRange(22:00, 22:00)
                 MinuteOfDyRange(0, 30)

Assuming the above is even correct, is it my only option in the current 
implementation?

Thanks
Scott

HotWax Media
http://www.hotwaxmedia.com

Reply via email to