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 WorkdayProperties
public MonthDay Date { get; set; } #Gets or sets the calendar day to which this workday applies.
public TimeSpan StartTimeOfDay { get; set; } #Gets or sets the time of day when the workday starts.
public TimeSpan WorkingHours { get; set; } #Gets 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.
Exceptions
Type
Description
ArgumentExceptionstartTimeOfDay is negative.ArgumentOutOfRangeExceptionstartTimeOfDay is greater than 24 hours, workingHours is greater than 24 hours, or their combination exceeds a calendar day.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.