Ruby Programming Guide
Contents
[
Hide
Show
]Aspose.Tasks - Retrieving Calendar Exceptions
To get Calendar Exceptions using Aspose.Tasks Java for Ruby, simply invoke GetCalendarExceptions module. Here you can see example code.
1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2
3calendars = project.getCalendars().toList()
4
5i = 0
6
7while i < calendars.size()
8
9 cal = calendars.get(i)
10
11 calException = cal.getExceptions().getCount()
12
13 if calException > 0
14
15 puts "From: " + calException.getFromDate().toString()
16
17 puts "To: " + calException.getToDate().toString()
18
19 end
20
21 i += 1
22
23end
Download Running Code
Download Retrieving Calendar Exceptions (Aspose.Tasks) from any of the below mentioned social coding sites: