ICalendar

ICalendar class

Represents a calendar abstraction which can be used for various calculations of dates and durations.

Methods

NameDescription
GetFinishDateByStartAndWork (2 overloads)Calculates the date when the specified amount of work time will pass according to the calendar.
GetNextWorkingDayStartCalculates next working day start for the specified date.
GetPreviousWorkingDayEndCalculates the end of the previous working date from the specified date.
GetStartDateFromFinishAndDuration (2 overloads)Returns start date based on the specified finish date and duration.
GetTaskFinishDateFromDurationCalculates the task finish date and time from its start date, split parts and the work duration.
GetWorkingHours (2 overloads)Returns the amount of working hours at the specified date.
GetWorkingHoursTimeSpanReturns amount of working hours between the specified dates.
GetWorkingTimesReturns WorkingTimeCollection of working times for the specified date.
GetWorkStartCalculates next working time start beginning from the specified date and time.
IsDayWorkingDetermines whether the specified day is a working day according to the calendar.
IsEmptyReturns whether the calendar doesn’t have working hours defined.