Class Workday
OptimaJet.Workflow.Core.Runtime.Calendars.Workday
Represents the workday settings for a specific calendar date.
Namespace: OptimaJet.Workflow.Core.Runtime.Calendars
public class WorkdayInheritance
- Object
Properties
Name
Type
Date #MonthDayGets or sets the calendar day to which this workday applies.
StartTimeOfDay #TimeSpanGets or sets the time of day when the workday starts.
WorkingHours #TimeSpanGets or sets the duration of working time for this day.
Methods
public static Workday Create(MonthDay date, TimeSpan startTimeOfDay, TimeSpan workingHours) #Creates a new Workday for the specified day and period.
Parameters
Name
Type
Description
dateMonthDayThe calendar day the settings apply to.
startTimeOfDayTimeSpanThe workday start time. Fractional seconds are removed by HelperDateTime.Floor(TimeSpan) before validation.
workingHoursTimeSpanThe working-day duration, in hours and minutes. Fractional seconds are removed by HelperDateTime.Floor(TimeSpan) before validation.
Returns
Type
Description
WorkdayA configured Workday instance.
public override bool Equals(object obj) #Determines whether the specified object is equal to the current Workday.
Parameters
Name
Type
Description
objObjectThe object to compare with this instance.
Returns
Type
Description
Booleantrue if the specified object is a Workday with the same day, start time, and working duration; otherwise, false.