tt= getParam('test',3,'test number',[1,2,3,4])

if ( tt==1 ):
   ev1= createEvent('2018-001',0x00FF00,'ev1')
   ev1= createEvent(ev1,'2018-002',0x00FF00,'ev1')
   ev1= createEvent(ev1,'2018-003',0x00FF00,'ev1')
   ev2= createEvent('2018-002',0x00FFFF,'ev2')
   ev2= createEvent(ev2,'2018-003',0x00FFFF,'ev2')
   ev2= createEvent(ev2,'2018-004',0x00FFFF,'ev2')
   
elif ( tt==2 ):
   ev1= createEvent('2018',0x00FF00,'ev1')
   ev2= createEvent('2018-002',0x00FFFF,'ev2')
   ev2= createEvent(ev2,'2018-003',0x00FFFF,'ev2')
   ev2= createEvent(ev2,'2018-004',0x00FFFF,'ev2')       

elif ( tt==3 ):
   ev2= createEvent('2018',0x00FF00,'ev2')
   ev1= createEvent('2018-002',0x00FFFF,'ev1')
   ev1= createEvent(ev1,'2018-003',0x00FFFF,'ev1')
   ev1= createEvent(ev1,'2018-004',0x00FFFF,'ev1')       

elif ( tt==4 ):
   ev1= createEvent('2018 through 2019',0x00FFFF,'ev1')
   ev2= createEvent('2019 through 2020',0x00FF00,'ev2')
      
ev= eventsConjunction(ev1,ev2)

for e in ev:
    print datumRange(e[0:2])