You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -61,22 +64,23 @@ Calendars are used to define standard working and non-working times. Projects mu
61
64
| [getFinishDateByStartAndWork(Date start, Duration work)](#getFinishDateByStartAndWork-java.util.Date-com.aspose.tasks.Duration-) | Calculates the date when the specified amount of work time will pass according to the calendar. |
62
65
| [getFinishDateByStartAndWork(Date start, double work)](#getFinishDateByStartAndWork-java.util.Date-double-) | Calculates the date when the specified amount of work time will pass according to the calendar. |
| [getIntersectionCalendar(Calendar calendar1, Calendar calendar2)](#getIntersectionCalendar-com.aspose.tasks.Calendar-com.aspose.tasks.Calendar-) | Gets [ICalendar](../../com.aspose.tasks/icalendar) instance which can be used to perform calculations on the intersection of work schedules of 2 calendars. |
64
68
| [getName()](#getName--) | Gets the name of the calendar. |
65
-
| [getNextWorkingDayStart(Date date)](#getNextWorkingDayStart-java.util.Date-) | Calculates next working day start from the date. |
66
-
| [getPreviousWorkingDayEnd(Date date)](#getPreviousWorkingDayEnd-java.util.Date-) | Calculates previous working date end from the specified date. |
67
-
| [getStartDateFromFinishAndDuration(Date finish, Duration duration)](#getStartDateFromFinishAndDuration-java.util.Date-com.aspose.tasks.Duration-) | Returns StartDate based on specified FinishDate and Duration. |
68
-
| [getStartDateFromFinishAndDuration(Date finish, double duration)](#getStartDateFromFinishAndDuration-java.util.Date-double-) | Returns StartDate based on specified FinishDate and Duration. |
69
-
| [getTaskFinishDateFromDuration(Task task, double duration)](#getTaskFinishDateFromDuration-com.aspose.tasks.Task-double-) | Calculates the task finish date and time from its start date, split parts and the duration. |
69
+
| [getNextWorkingDayStart(Date date)](#getNextWorkingDayStart-java.util.Date-) | Calculates next working day start for the specified date. |
70
+
| [getPreviousWorkingDayEnd(Date date)](#getPreviousWorkingDayEnd-java.util.Date-) | Calculates the end of the previous working date from the specified date. |
71
+
| [getStartDateFromFinishAndDuration(Date finish, Duration duration)](#getStartDateFromFinishAndDuration-java.util.Date-com.aspose.tasks.Duration-) | Returns start date based on the specified finish date and duration. |
72
+
| [getStartDateFromFinishAndDuration(Date finish, double duration)](#getStartDateFromFinishAndDuration-java.util.Date-double-) | Returns start date based on specified finish date and duration. |
73
+
| [getTaskFinishDateFromDuration(Task task, double duration)](#getTaskFinishDateFromDuration-com.aspose.tasks.Task-double-) | Calculates the task finish date and time from its start date, split parts and the work duration. |
70
74
| [getUid()](#getUid--) | Gets the unique identifier of the calendar. |
71
75
| [getWeekDays()](#getWeekDays--) | Gets WeekDaysCollection for this calendar. |
| [getWorkingHours(Date dt)](#getWorkingHours-java.util.Date-) | Returns amount of working hours at the date. |
74
-
| [getWorkingHours(Date start, Date finish)](#getWorkingHours-java.util.Date-java.util.Date-) | Return working hours for the specified dates. |
77
+
| [getWorkingHours(Date dt)](#getWorkingHours-java.util.Date-) | Returns the amount of working hours at the specified date. |
78
+
| [getWorkingHours(Date start, Date finish)](#getWorkingHours-java.util.Date-java.util.Date-) | Return WorkUnit - Start, Finish and Duration of working hours for the specified date time interval. |
75
79
| [getWorkingTimes(Date dt)](#getWorkingTimes-java.util.Date-) | Returns [WorkingTimeCollection](../../com.aspose.tasks/workingtimecollection) of working times for the specified date. |
76
80
| [hashCode()](#hashCode--) | Returns a hash code for the instance of the class. |
77
81
| [isBaseCalendar()](#isBaseCalendar--) | Gets a value indicating whether the calendar is a base calendar. |
78
82
| [isBaselineCalendar()](#isBaselineCalendar--) | Gets a value indicating whether the calendar is a baseline calendar. |
79
-
| [isDayWorking(Date dt)](#isDayWorking-java.util.Date-) | Determines whether the day is working day. |
83
+
| [isDayWorking(Date dt)](#isDayWorking-java.util.Date-) | Determines whether the specified day is a working day according to the calendar. |
80
84
| [make24HourCalendar(Calendar calendar)](#make24HourCalendar-com.aspose.tasks.Calendar-) | Makes a given Calendar to be a 24Hour Calendar. 24Hours Calendar is a Calendar in which every day of week is working with Round-the-clock working hours. |
81
85
| [makeNightShiftCalendar(Calendar calendar)](#makeNightShiftCalendar-com.aspose.tasks.Calendar-) | Makes a given Calendar as Night Shift Calendar. |
82
86
| [makeStandardCalendar(Calendar calendar)](#makeStandardCalendar-com.aspose.tasks.Calendar-) | Creates default standard calendar. |
public static ICalendar getIntersectionCalendar(Calendar calendar1, Calendar calendar2)
179
+
```
180
+
181
+
182
+
Gets [ICalendar](../../com.aspose.tasks/icalendar) instance which can be used to perform calculations on the intersection of work schedules of 2 calendars.
183
+
184
+
**Parameters:**
185
+
| Parameter | Type | Description |
186
+
| --- | --- | --- |
187
+
| calendar1 | [Calendar](../../com.aspose.tasks/calendar) | First calendar. |
188
+
| calendar2 | [Calendar](../../com.aspose.tasks/calendar) | Second calendar. |
189
+
190
+
**Returns:**
191
+
[ICalendar](../../com.aspose.tasks/icalendar) - Implementation of ICalendar interface.
172
192
### getName() {#getName--}
173
193
```
174
194
public final String getName()
@@ -185,7 +205,7 @@ public final Date getNextWorkingDayStart(Date date)
185
205
```
186
206
187
207
188
-
Calculates next working day start from the date.
208
+
Calculates next working day start for the specified date.
189
209
190
210
**Parameters:**
191
211
| Parameter | Type | Description |
@@ -200,67 +220,65 @@ public final Date getPreviousWorkingDayEnd(Date date)
200
220
```
201
221
202
222
203
-
Calculates previous working date end from the specified date.
223
+
Calculates the end of the previous working date from the specified date.
204
224
205
225
**Parameters:**
206
226
| Parameter | Type | Description |
207
227
| --- | --- | --- |
208
228
| date | java.util.Date | the specified instance of java.util.Date struct. |
209
229
210
230
**Returns:**
211
-
java.util.Date - Previous working day start java.util.Date
231
+
java.util.Date - The end of the previous working day end java.util.Date
public final Date getTaskFinishDateFromDuration(Task task, double duration)
247
267
```
248
268
249
269
250
-
Calculates the task finish date and time from its start date, split parts and the duration.
270
+
Calculates the task finish date and time from its start date, split parts and the work duration.
251
271
252
272
**Parameters:**
253
273
| Parameter | Type | Description |
254
274
| --- | --- | --- |
255
-
| task | [Task](../../com.aspose.tasks/task) | The task to get finish date for. |
256
-
| duration | double | The task duration to split on.
257
-
258
-
--------------------
275
+
| task | [Task](../../com.aspose.tasks/task) | The task to calculate finish date for. |
276
+
| duration | double | The duration to calculate.
259
277
260
278
Returns DateTime.MinValue if task is summary, null or its start date is not set. |
261
279
262
280
**Returns:**
263
-
java.util.Date - Task's finish date.
281
+
java.util.Date - Task's finish date for the given start date and duration.
264
282
### getUid() {#getUid--}
265
283
```
266
284
public final int getUid()
@@ -297,31 +315,31 @@ public final double getWorkingHours(Date dt)
297
315
```
298
316
299
317
300
-
Returns amount of working hours at the date.
318
+
Returns the amount of working hours at the specified date.
301
319
302
320
**Parameters:**
303
321
| Parameter | Type | Description |
304
322
| --- | --- | --- |
305
323
| dt | java.util.Date | The date to get working hours for. |
306
324
307
325
**Returns:**
308
-
double - Working hours.
326
+
double - Working hours at the specified date.
309
327
### getWorkingHours(Date start, Date finish) {#getWorkingHours-java.util.Date-java.util.Date-}
310
328
```
311
329
public final WorkUnit getWorkingHours(Date start, Date finish)
312
330
```
313
331
314
332
315
-
Return working hours for the specified dates.
333
+
Return WorkUnit - Start, Finish and Duration of working hours for the specified date time interval.
316
334
317
335
**Parameters:**
318
336
| Parameter | Type | Description |
319
337
| --- | --- | --- |
320
-
| start | java.util.Date | Start date. |
321
-
| finish | java.util.Date | Finish date. |
338
+
| start | java.util.Date | Start date of the interval. |
339
+
| finish | java.util.Date | Finish date of the interval. |
322
340
323
341
**Returns:**
324
-
[WorkUnit](../../com.aspose.tasks/workunit) - Working hours.
342
+
[WorkUnit](../../com.aspose.tasks/workunit) - Instance of [WorkUnit](../../com.aspose.tasks/workunit) class containing Start, Finish and Duration of working hours.
0 commit comments