# GC.Spread.Sheets.GanttSheet.CalendarSettings

## Content

# Class: CalendarSettings

[Sheets](../modules/GC.Spread.Sheets).[GanttSheet](../modules/GC.Spread.Sheets.GanttSheet).CalendarSettings

## Table of contents

### Constructors

- [constructor](GC.Spread.Sheets.GanttSheet.CalendarSettings#constructor)

### Properties

- [daysPerMonth](GC.Spread.Sheets.GanttSheet.CalendarSettings#dayspermonth)
- [defaultDurationDecimalDigits](GC.Spread.Sheets.GanttSheet.CalendarSettings#defaultdurationdecimaldigits)
- [defaultDurationUnit](GC.Spread.Sheets.GanttSheet.CalendarSettings#defaultdurationunit)
- [defaultFinishTime](GC.Spread.Sheets.GanttSheet.CalendarSettings#defaultfinishtime)
- [defaultStartTime](GC.Spread.Sheets.GanttSheet.CalendarSettings#defaultstarttime)
- [hoursPerDay](GC.Spread.Sheets.GanttSheet.CalendarSettings#hoursperday)
- [hoursPerWeek](GC.Spread.Sheets.GanttSheet.CalendarSettings#hoursperweek)
- [unitLabels](GC.Spread.Sheets.GanttSheet.CalendarSettings#unitlabels)
- [unitLabelsPlurals](GC.Spread.Sheets.GanttSheet.CalendarSettings#unitlabelsplurals)
- [weekStartOn](GC.Spread.Sheets.GanttSheet.CalendarSettings#weekstarton)

## Constructors

### <a id="constructor" name="constructor"></a> constructor

• **new CalendarSettings**()

Creates a calendar settings object. Internal used only.

**`classdesc`** Represents a calendar settings object to configure the parameters used by calendars and durations.

## Properties

### <a id="dayspermonth" name="dayspermonth"></a> daysPerMonth

• **daysPerMonth**: `number`

Gets or sets a value that indicates how many work days have in a month. It is used in duration conversions and calculating. The default value is 20;

**`default`** 20

___

### <a id="defaultdurationdecimaldigits" name="defaultdurationdecimaldigits"></a> defaultDurationDecimalDigits

• **defaultDurationDecimalDigits**: `number`

Gets or sets the decimal digits for formatting a duration value. This duration value will be rounded to the nearest decimal places. The default value is 3.

**`default`** 3

___

### <a id="defaultdurationunit" name="defaultdurationunit"></a> defaultDurationUnit

• **defaultDurationUnit**: [`DurationUnit`](../modules/GC.Spread.Sheets.GanttSheet#durationunit)

Gets or sets the default unit of duration. It is used in parsing or editing durations. The default value is 'Day'.

**`default`** "Day"

___

### <a id="defaultfinishtime" name="defaultfinishtime"></a> defaultFinishTime

• **defaultFinishTime**: [`Time`](../modules/GC.Spread.Sheets.GanttSheet#time)

Gets or sets the default time for task finish. If the date for task finish has no time specified, then this time will be used. The default value is 17:00.

___

### <a id="defaultstarttime" name="defaultstarttime"></a> defaultStartTime

• **defaultStartTime**: [`Time`](../modules/GC.Spread.Sheets.GanttSheet#time)

Gets or sets the default time for task start. If the date for task start has no time specified, then this time will be used. The default value is 8:00.

___

### <a id="hoursperday" name="hoursperday"></a> hoursPerDay

• **hoursPerDay**: `number`

Gets or sets a value that indicates how many hours have in a workday. It is used in duration conversions and calculating. The default value is 8;

**`default`** 8

___

### <a id="hoursperweek" name="hoursperweek"></a> hoursPerWeek

• **hoursPerWeek**: `number`

Gets or sets a value that indicates how many hours have in a work week. It is used in duration conversions and calculating. The default value is 40;

**`default`** 40

___

### <a id="unitlabels" name="unitlabels"></a> unitLabels

• **unitLabels**: `string`[]

Gets or sets the labels for duration parsing and formatting. The value should have 6 strings, in the order as Minute, Hour, Day, Week, Month, and Year.

___

### <a id="unitlabelsplurals" name="unitlabelsplurals"></a> unitLabelsPlurals

• **unitLabelsPlurals**: `string`[]

Gets or sets the plurals labels for duration parsing and formatting. The value should have 6 strings, in the order as Minute, Hour, Day, Week, Month, and Year.

___

### <a id="weekstarton" name="weekstarton"></a> weekStartOn

• **weekStartOn**: [`DayOfWeek`](../enums/GC.Spread.Sheets.GanttSheet.DayOfWeek)

Gets or sets a value that indicates the first day of the week. It will affect how to display and calculate weeks. The default value is Sunday.

**`default`** GC.Spread.Sheets.GanttSheet.DayOfWeek.Sunday
