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
Copy file name to clipboardExpand all lines: english/java/com.aspose.tasks/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ url: /java/com.aspose.tasks/
128
128
|[GroupCriterion](../com.aspose.tasks/groupcriterion)| Represents a criterion in a group definition. |
129
129
|[GroupCriterionCollection](../com.aspose.tasks/groupcriterioncollection)| Contains a collection of [GroupCriterion](../com.aspose.tasks/groupcriterion) objects. |
130
130
|[GroupOn](../com.aspose.tasks/groupon)| Specifies the type of grouping. |
131
-
|[HeaderFooterInfo](../com.aspose.tasks/headerfooterinfo)| Represents header or footer data which is present in views and used for printing. |
131
+
|[HeaderFooterInfo](../com.aspose.tasks/headerfooterinfo)| Represents visual content of the header, footer or legend which is used for printing\\ rendering of views. |
132
132
|[HorizontalAlignment](../com.aspose.tasks/horizontalalignment)| Specifies how an object or text is horizontally aligned relative to another object. |
133
133
|[HorizontalStringAlignment](../com.aspose.tasks/horizontalstringalignment)| Specifies the alignment of a text string relative to its layout rectangle. |
134
134
|[HourLabelDisplay](../com.aspose.tasks/hourlabeldisplay)| Specifies how the hour label displays. |
Copy file name to clipboardExpand all lines: english/java/com.aspose.tasks/calendar/_index.md
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,14 +73,17 @@ Calendars are used to define standard working and non-working times. Projects mu
73
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. |
74
74
| [getUid()](#getUid--) | Gets the unique identifier of the calendar. |
75
75
| [getWeekDays()](#getWeekDays--) | Gets WeekDaysCollection for this calendar. |
76
+
| [getWorkStart(Date date)](#getWorkStart-java.util.Date-) | Calculates next working time start beginning from the specified date and time. |
| [getWorkingHours(Date dt)](#getWorkingHours-java.util.Date-) | Returns the amount of working hours at the specified date. |
78
79
| [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. |
80
+
| [getWorkingHoursTimeSpan(Date start, Date finish)](#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-) | Returns amount of working hours between the specified dates. |
79
81
| [getWorkingTimes(Date dt)](#getWorkingTimes-java.util.Date-) | Returns [WorkingTimeCollection](../../com.aspose.tasks/workingtimecollection) of working times for the specified date. |
80
82
| [hashCode()](#hashCode--) | Returns a hash code for the instance of the class. |
81
83
| [isBaseCalendar()](#isBaseCalendar--) | Gets a value indicating whether the calendar is a base calendar. |
82
84
| [isBaselineCalendar()](#isBaselineCalendar--) | Gets a value indicating whether the calendar is a baseline calendar. |
83
85
| [isDayWorking(Date dt)](#isDayWorking-java.util.Date-) | Determines whether the specified day is a working day according to the calendar. |
86
+
| [isEmpty()](#isEmpty--) | Returns whether the calendar doesn't have working hours defined. |
84
87
| [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. |
85
88
| [makeNightShiftCalendar(Calendar calendar)](#makeNightShiftCalendar-com.aspose.tasks.Calendar-) | Makes a given Calendar as Night Shift Calendar. |
86
89
| [makeStandardCalendar(Calendar calendar)](#makeStandardCalendar-com.aspose.tasks.Calendar-) | Creates default standard calendar. |
@@ -299,6 +302,21 @@ Gets WeekDaysCollection for this calendar. The collection of weekdays that defin
299
302
300
303
**Returns:**
301
304
[WeekDayCollection](../../com.aspose.tasks/weekdaycollection) - WeekDaysCollection for this calendar.
Calculates next working time start beginning from the specified date and time.
312
+
313
+
**Parameters:**
314
+
| Parameter | Type | Description |
315
+
| --- | --- | --- |
316
+
| date | java.util.Date | The date and time. |
317
+
318
+
**Returns:**
319
+
java.util.Date - The nearest working time start.
302
320
### getWorkWeeks() {#getWorkWeeks--}
303
321
```
304
322
public final WorkWeekCollection getWorkWeeks()
@@ -340,6 +358,22 @@ Return WorkUnit - Start, Finish and Duration of working hours for the specified
340
358
341
359
**Returns:**
342
360
[WorkUnit](../../com.aspose.tasks/workunit) - Instance of [WorkUnit](../../com.aspose.tasks/workunit) class containing Start, Finish and Duration of working hours.
361
+
### getWorkingHoursTimeSpan(Date start, Date finish) {#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-}
362
+
```
363
+
public final double getWorkingHoursTimeSpan(Date start, Date finish)
364
+
```
365
+
366
+
367
+
Returns amount of working hours between the specified dates.
368
+
369
+
**Parameters:**
370
+
| Parameter | Type | Description |
371
+
| --- | --- | --- |
372
+
| start | java.util.Date | Start date of the interval. |
373
+
| finish | java.util.Date | Finish date of the interval. |
374
+
375
+
**Returns:**
376
+
double - Amount of working hours according to the calendar instance.
Copy file name to clipboardExpand all lines: english/java/com.aspose.tasks/icalendar/_index.md
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,13 @@ Represents a calendar abstraction which can be used for various calculations of
22
22
|[getStartDateFromFinishAndDuration(Date finish, Duration duration)](#getStartDateFromFinishAndDuration-java.util.Date-com.aspose.tasks.Duration-)| Returns start date based on the specified finish date and duration. |
23
23
|[getStartDateFromFinishAndDuration(Date finish, double duration)](#getStartDateFromFinishAndDuration-java.util.Date-double-)| Returns start date based on specified finish date and duration. |
24
24
|[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. |
25
+
|[getWorkStart(Date date)](#getWorkStart-java.util.Date-)| Calculates next working time start beginning from the specified date and time. |
25
26
|[getWorkingHours(Date dt)](#getWorkingHours-java.util.Date-)| Returns the amount of working hours at the specified date. |
26
27
|[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. |
28
+
|[getWorkingHoursTimeSpan(Date start, Date finish)](#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-)| Returns amount of working hours between the specified dates. |
27
29
|[getWorkingTimes(Date dt)](#getWorkingTimes-java.util.Date-)| Returns [WorkingTimeCollection](../../com.aspose.tasks/workingtimecollection) of working times for the specified date. |
28
30
|[isDayWorking(Date dt)](#isDayWorking-java.util.Date-)| Determines whether the specified day is a working day according to the calendar. |
31
+
|[isEmpty()](#isEmpty--)| Returns whether the calendar doesn't have working hours defined. |
@@ -169,6 +187,22 @@ Return WorkUnit - Start, Finish and Duration of working hours for the specified
169
187
170
188
**Returns:**
171
189
[WorkUnit](../../com.aspose.tasks/workunit) - Instance of [WorkUnit](../../com.aspose.tasks/workunit) class containing Start, Finish and Duration of working hours.
190
+
### getWorkingHoursTimeSpan(Date start, Date finish) {#getWorkingHoursTimeSpan-java.util.Date-java.util.Date-}
191
+
```
192
+
public abstract double getWorkingHoursTimeSpan(Date start, Date finish)
193
+
```
194
+
195
+
196
+
Returns amount of working hours between the specified dates.
197
+
198
+
**Parameters:**
199
+
| Parameter | Type | Description |
200
+
| --- | --- | --- |
201
+
| start | java.util.Date | Start date of the interval. |
202
+
| finish | java.util.Date | Finish date of the interval. |
203
+
204
+
**Returns:**
205
+
double - Amount of working hours according to the calendar instance.
0 commit comments