TTMSFNCGanttWorkTime Class
Defines working days, working hours, and holidays used to calculate task schedules.
API unit family: TMSFNCGanttClasses
Inherits from: TPersistent
Syntax
TTMSFNCGanttWorkTime = class(TPersistent)
Properties
| Name | Description |
|---|---|
| Holidays | Holiday ranges excluded from working-time calculations. |
| WorkDayEnd | End time of the configured working day. |
| WorkDayStart | Start time of the configured working day. |
| WorkingDays | Days of the week treated as working days. |
| WorkingHours | Working-hour intervals used for schedule calculations. |
Methods
| Name | Description |
|---|---|
| GetActualEndDateTime | Returns the adjusted end date/time after applying a duration and work-time policy. |
| GetActualStartDateTime | Returns the adjusted start date/time for the specified work-time policy. |
| GetActualStartDateTimeByEnd | Returns the adjusted start date/time by subtracting a duration from an end date/time. |
| GetDurationBetweenDateTimes | Calculates the duration between two date/time values using the selected work-time policy. |
| GetNextWorkEndDateTime | Returns the next working end date/time. |
| GetNextWorkStartDateTime | Returns the next working start date/time. |
| GetPreviousWorkEndDateTime | Returns the previous working end date/time. |
| GetPreviousWorkStartDateTime | Returns the previous working start date/time. |
| GetWorkTimeDifference | Calculates the working-time difference between two date/time values. |
| IsHoliday | Returns whether a date/time falls inside a configured holiday range. |
| IsWorkDay | Returns whether a date falls on a configured working day. |
| IsWorkOrNotHoliday | Returns whether a date/time is either working time or not a holiday. |
| IsWorkTime | Returns whether a date/time falls inside configured working hours. |
| SetSampleData | Applies sample working days, working hours, and holidays. |
| UpdateValues | Recalculates cached working-day and working-hour values. |