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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to