On 14/05/2010 9:03 AM, Sean Robinson wrote:
Has anyone used DateTime and friends to find scheduling conflicts and been able to identify the offending events without walking a list of Spans?
A few years back I was in the same place you are right now. Have a look through the archive for my work on the catholic liturgical calendar: It has many rules about conflicts. I was planning on using DateTime to work out when a particular hol[iy]day was in a given year. To do that I was going to put everything into spans and sets in priority order, then use conflicts to move particluar feasts. Finally I'd have a spanset for the whole year. Each span in that set would then be able to return which holy day it was. Once that was set up, I could pass in a date and check for a 'conflict' in order to determine on which holy day that date fell.
And then I hit the same brick wall you have, got frustrated, wandered off and gave up. Sorry I can't offer you any further help, but the inability is so fundamental to the way spans and spansets are built that there would be no solution beyond created your own set of classes.
Cheers! Rick Measham -- Message protected for iSite by MailGuard: e-mail anti-virus, anti-spam and content filtering.http://www.mailguard.com.au