Aspose.Tasks for C++
|
Represents a calendar abstraction which can be used for various calculations of dates and durations. More...
#include <ICalendar.h>
Inherits Object.
Inherited by Aspose::Tasks::Calendar.
Public Member Functions | |
virtual System::DateTime | GetStartDateFromFinishAndDuration (System::DateTime finish, Duration duration)=0 |
Returns start date based on the specified finish date and duration. More... | |
virtual System::DateTime | GetStartDateFromFinishAndDuration (System::DateTime finish, System::TimeSpan duration)=0 |
Returns start date based on specified finish date and duration. More... | |
virtual bool | IsDayWorking (System::DateTime dt)=0 |
Determines whether the specified day is a working day according to the calendar. More... | |
virtual System::SharedPtr< WorkUnit > | GetWorkingHours (System::DateTime start, System::DateTime finish)=0 |
Returns WorkUnit - Start, Finish and Duration of working hours for the specified date time interval. More... | |
virtual System::TimeSpan | GetWorkingHours (System::DateTime dt)=0 |
Returns the amount of working hours at the specified date. More... | |
virtual System::TimeSpan | GetWorkingHoursTimeSpan (System::DateTime start, System::DateTime finish)=0 |
Returns amount of working hours between the specified dates. More... | |
virtual System::DateTime | GetFinishDateByStartAndWork (System::DateTime start, Duration work)=0 |
Calculates the date when the specified amount of work time will pass according to the calendar. More... | |
virtual System::DateTime | GetFinishDateByStartAndWork (System::DateTime start, System::TimeSpan work)=0 |
Calculates the date when the specified amount of work time will pass according to the calendar. More... | |
virtual System::DateTime | GetTaskFinishDateFromDuration (System::SharedPtr< Task > task, System::TimeSpan duration)=0 |
Calculates the task finish date and time from its start date, split parts and the work duration. More... | |
virtual System::SharedPtr< WorkingTimeCollection > | GetWorkingTimes (System::DateTime dt)=0 |
Returns WorkingTimeCollection of working times for the specified date. More... | |
virtual System::DateTime | GetPreviousWorkingDayEnd (System::DateTime date)=0 |
Calculates the end of the previous working date from the specified date. More... | |
virtual System::DateTime | GetNextWorkingDayStart (System::DateTime date)=0 |
Calculates next working day start for the specified date. More... | |
virtual System::DateTime | GetWorkStart (System::DateTime date)=0 |
Calculates next working time start beginning from the specified date and time. More... | |
virtual bool | IsEmpty ()=0 |
Returns whether the calendar doesn't have working hours defined. More... | |
Represents a calendar abstraction which can be used for various calculations of dates and durations.
|
pure virtual |
Calculates the date when the specified amount of work time will pass according to the calendar.
start | Start date. |
work | Work duration. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Calculates the date when the specified amount of work time will pass according to the calendar.
start | Start date. |
work | Work duration. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Calculates next working day start for the specified date.
date | The date to get next working day start for. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Calculates the end of the previous working date from the specified date.
date | the date to calculate the previous working day end. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Returns start date based on the specified finish date and duration.
finish | The specified finish date. |
duration | The specified duration. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Returns start date based on specified finish date and duration.
finish | The specified finish date. |
duration | The specified duration. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Calculates the task finish date and time from its start date, split parts and the work duration.
task | The task to calculate finish date for. |
duration | The duration to calculate. |
Returns DateTime.MinValue if task is summary, null or its start date is not set.
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Returns the amount of working hours at the specified date.
dt | The date to get working hours for. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Returns WorkUnit - Start, Finish and Duration of working hours for the specified date time interval.
start | Start date of the interval. |
finish | Finish date of the interval. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Returns amount of working hours between the specified dates.
start | Start date of the interval. |
finish | Finish date of the interval. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Returns WorkingTimeCollection of working times for the specified date.
dt | The date to get working times for. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Calculates next working time start beginning from the specified date and time.
date | The date and time. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Determines whether the specified day is a working day according to the calendar.
dt | The date to check whether the day is working. |
Implemented in Aspose::Tasks::Calendar.
|
pure virtual |
Returns whether the calendar doesn't have working hours defined.
Implemented in Aspose::Tasks::Calendar.