Skip to main content

Interface ICalendar

Work calendar

Namespace: OptimaJet.Workflow.Core.Runtime.Calendars

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public interface ICalendar

Methods

IsWorkday(DateTime)

Checking whether the day is a working day

Declaration
bool IsWorkday(DateTime day)
Parameters
TypeNameDescription
DateTimedayDateTime instance
Returns
TypeDescription
booltrue if day is workday, false otherwise

GetRestOfWorkday(DateTime)

Get the rest of the workday

Declaration
TimeSpan GetRestOfWorkday(DateTime day)
Parameters
TypeNameDescription
DateTimedayDateTime instance
Returns
TypeDescription
TimeSpanTimeSpan with the rest of the working day

GetStartOfWorkday(DateTime)

Get the start of the workday

Declaration
TimeSpan GetStartOfWorkday(DateTime day)
Parameters
TypeNameDescription
DateTimedayDateTime instance
Returns
TypeDescription
TimeSpanStart of the workday

Extension Methods