Interface ICalendar
Work calendar
Namespace: OptimaJet.Workflow.Core.Runtime.Calendars
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic interface ICalendar
Methods
IsWorkday(DateTime)
Checking whether the day is a working day
Declarationbool IsWorkday(DateTime day)
Type | Name | Description |
---|---|---|
DateTime | day | DateTime instance |
Type | Description |
---|---|
bool | true if day is workday, false otherwise |
GetRestOfWorkday(DateTime)
Get the rest of the workday
DeclarationTimeSpan GetRestOfWorkday(DateTime day)
Type | Name | Description |
---|---|---|
DateTime | day | DateTime instance |
Type | Description |
---|---|
TimeSpan | TimeSpan with the rest of the working day |
GetStartOfWorkday(DateTime)
Get the start of the workday
DeclarationTimeSpan GetStartOfWorkday(DateTime day)
Type | Name | Description |
---|---|---|
DateTime | day | DateTime instance |
Type | Description |
---|---|
TimeSpan | Start of the workday |