> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSChatOpeningHours

> Chat topic opening hour. Carrier object for ChatOpeningHours.

Chat topic opening hour. Carrier object for ChatOpeningHours.

## Constructors

### NSChatOpeningHours()

```crmscript theme={null}
NSChatOpeningHours
```

Initializes a new instance of the NSChatOpeningHours class.

## Methods

## GetFriEnabled()

```crmscript theme={null}
Bool GetFriEnabled()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Whether open on Fridays.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool friEnabled = thing.GetFriEnabled();
```

## GetFriStart()

```crmscript theme={null}
TimeSpan GetFriStart()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours start on Fridays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan friStart = thing.GetFriStart();
```

## GetFriStop()

```crmscript theme={null}
TimeSpan GetFriStop()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours stop on Fridays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan friStop = thing.GetFriStop();
```

## GetMonEnabled()

```crmscript theme={null}
Bool GetMonEnabled()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Whether open on Mondays.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool monEnabled = thing.GetMonEnabled();
```

## GetMonStart()

```crmscript theme={null}
TimeSpan GetMonStart()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours start on Mondays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan monStart = thing.GetMonStart();
```

## GetMonStop()

```crmscript theme={null}
TimeSpan GetMonStop()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours stop on Mondays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan monStop = thing.GetMonStop();
```

## GetSatEnabled()

```crmscript theme={null}
Bool GetSatEnabled()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Whether open on Saturdays.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool satEnabled = thing.GetSatEnabled();
```

## GetSatStart()

```crmscript theme={null}
TimeSpan GetSatStart()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours start on Saturdays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan satStart = thing.GetSatStart();
```

## GetSatStop()

```crmscript theme={null}
TimeSpan GetSatStop()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours stop on Saturdays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan satStop = thing.GetSatStop();
```

## GetSunEnabled()

```crmscript theme={null}
Bool GetSunEnabled()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Whether open on Sundays.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool sunEnabled = thing.GetSunEnabled();
```

## GetSunStart()

```crmscript theme={null}
TimeSpan GetSunStart()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours start on Sundays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan sunStart = thing.GetSunStart();
```

## GetSunStop()

```crmscript theme={null}
TimeSpan GetSunStop()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours stop on Sundays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan sunStop = thing.GetSunStop();
```

## GetThuEnabled()

```crmscript theme={null}
Bool GetThuEnabled()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Whether open on Thursdays.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool thuEnabled = thing.GetThuEnabled();
```

## GetThuStart()

```crmscript theme={null}
TimeSpan GetThuStart()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours start on Thursdays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan thuStart = thing.GetThuStart();
```

## GetThuStop()

```crmscript theme={null}
TimeSpan GetThuStop()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours stop on Thursdays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan thuStop = thing.GetThuStop();
```

## GetTueEnabled()

```crmscript theme={null}
Bool GetTueEnabled()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Whether open on Tuesdays.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool tueEnabled = thing.GetTueEnabled();
```

## GetTueStart()

```crmscript theme={null}
TimeSpan GetTueStart()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours start on Tuesdays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan tueStart = thing.GetTueStart();
```

## GetTueStop()

```crmscript theme={null}
TimeSpan GetTueStop()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours stop on Tuesdays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan tueStop = thing.GetTueStop();
```

## GetTzLocation()

```crmscript theme={null}
NSTimeZoneData GetTzLocation()
```

**Returns:** [CRMScript.NetServer.NSTimeZoneData](CRMScript.NetServer.NSTimeZoneData) - Time zone used for the opening hours (start/stop times) for this topic.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
NSTimeZoneData tzLocation = thing.GetTzLocation();
```

## GetWedEnabled()

```crmscript theme={null}
Bool GetWedEnabled()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Whether open on Wednesdays.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool wedEnabled = thing.GetWedEnabled();
```

## GetWedStart()

```crmscript theme={null}
TimeSpan GetWedStart()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours start on Wednesdays. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan wedStart = thing.GetWedStart();
```

## GetWedStop()

```crmscript theme={null}
TimeSpan GetWedStop()
```

**Returns:** [CRMScript.Native.TimeSpan](CRMScript.Native.TimeSpan) - When opening hours stop on Wednesday. Only time-part is used.

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan wedStop = thing.GetWedStop();
```

## SetFriEnabled(Bool)

```crmscript theme={null}
Void SetFriEnabled(Bool friEnabled)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool friEnabled;
thing.SetFriEnabled(friEnabled);
```

## SetFriStart(TimeSpan)

```crmscript theme={null}
Void SetFriStart(TimeSpan friStart)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan friStart;
thing.SetFriStart(friStart);
```

## SetFriStop(TimeSpan)

```crmscript theme={null}
Void SetFriStop(TimeSpan friStop)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan friStop;
thing.SetFriStop(friStop);
```

## SetMonEnabled(Bool)

```crmscript theme={null}
Void SetMonEnabled(Bool monEnabled)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool monEnabled;
thing.SetMonEnabled(monEnabled);
```

## SetMonStart(TimeSpan)

```crmscript theme={null}
Void SetMonStart(TimeSpan monStart)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan monStart;
thing.SetMonStart(monStart);
```

## SetMonStop(TimeSpan)

```crmscript theme={null}
Void SetMonStop(TimeSpan monStop)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan monStop;
thing.SetMonStop(monStop);
```

## SetSatEnabled(Bool)

```crmscript theme={null}
Void SetSatEnabled(Bool satEnabled)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool satEnabled;
thing.SetSatEnabled(satEnabled);
```

## SetSatStart(TimeSpan)

```crmscript theme={null}
Void SetSatStart(TimeSpan satStart)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan satStart;
thing.SetSatStart(satStart);
```

## SetSatStop(TimeSpan)

```crmscript theme={null}
Void SetSatStop(TimeSpan satStop)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan satStop;
thing.SetSatStop(satStop);
```

## SetSunEnabled(Bool)

```crmscript theme={null}
Void SetSunEnabled(Bool sunEnabled)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool sunEnabled;
thing.SetSunEnabled(sunEnabled);
```

## SetSunStart(TimeSpan)

```crmscript theme={null}
Void SetSunStart(TimeSpan sunStart)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan sunStart;
thing.SetSunStart(sunStart);
```

## SetSunStop(TimeSpan)

```crmscript theme={null}
Void SetSunStop(TimeSpan sunStop)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan sunStop;
thing.SetSunStop(sunStop);
```

## SetThuEnabled(Bool)

```crmscript theme={null}
Void SetThuEnabled(Bool thuEnabled)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool thuEnabled;
thing.SetThuEnabled(thuEnabled);
```

## SetThuStart(TimeSpan)

```crmscript theme={null}
Void SetThuStart(TimeSpan thuStart)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan thuStart;
thing.SetThuStart(thuStart);
```

## SetThuStop(TimeSpan)

```crmscript theme={null}
Void SetThuStop(TimeSpan thuStop)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan thuStop;
thing.SetThuStop(thuStop);
```

## SetTueEnabled(Bool)

```crmscript theme={null}
Void SetTueEnabled(Bool tueEnabled)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool tueEnabled;
thing.SetTueEnabled(tueEnabled);
```

## SetTueStart(TimeSpan)

```crmscript theme={null}
Void SetTueStart(TimeSpan tueStart)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan tueStart;
thing.SetTueStart(tueStart);
```

## SetTueStop(TimeSpan)

```crmscript theme={null}
Void SetTueStop(TimeSpan tueStop)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan tueStop;
thing.SetTueStop(tueStop);
```

## SetTzLocation(NSTimeZoneData)

```crmscript theme={null}
Void SetTzLocation(NSTimeZoneData tzLocation)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
NSTimeZoneData tzLocation;
thing.SetTzLocation(tzLocation);
```

## SetWedEnabled(Bool)

```crmscript theme={null}
Void SetWedEnabled(Bool wedEnabled)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
Bool wedEnabled;
thing.SetWedEnabled(wedEnabled);
```

## SetWedStart(TimeSpan)

```crmscript theme={null}
Void SetWedStart(TimeSpan wedStart)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan wedStart;
thing.SetWedStart(wedStart);
```

## SetWedStop(TimeSpan)

```crmscript theme={null}
Void SetWedStop(TimeSpan wedStop)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSChatOpeningHours thing;
TimeSpan wedStop;
thing.SetWedStop(wedStop);
```


## Related topics

- [NSChatTopicEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSChatTopicEntity.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [SuperOffice.WebApi.Data.ChatOpeningHours](/en/api/reference/webapi/SuperOffice.WebApi.Data.ChatOpeningHours.md)
- [SuperOffice.WebApi.Data.Chat IsWithinOpeningHoursRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.Chat_IsWithinOpeningHoursRequest.md)
- [Is Within Opening Hours](/en/api/reference/restful/rest/chattopic/is-within-opening-hours.md)
