> ## 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.

# NSFieldInfoTimeSpan

> Timespan custom database field. Number of minutes, represented as days/hours/minutes.

Timespan custom database field. Number of minutes, represented as days/hours/minutes.

## Constructors

### NSFieldInfoTimeSpan()

```crmscript theme={null}
NSFieldInfoTimeSpan
```

Initializes a new instance of the NSFieldInfoTimeSpan class.

## Methods

## GetDefaultValue()

```crmscript theme={null}
Integer GetDefaultValue()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Default TimeSpan value, number of minutes.

**Example:**

```crmscript theme={null}
NSFieldInfoTimeSpan thing;
Integer defaultValue = thing.GetDefaultValue();
```

## GetUseDays()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Should the time-span be counted in days?

**Example:**

```crmscript theme={null}
NSFieldInfoTimeSpan thing;
Bool useDays = thing.GetUseDays();
```

## GetUseHours()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Should the time-span be counted in hours?

**Example:**

```crmscript theme={null}
NSFieldInfoTimeSpan thing;
Bool useHours = thing.GetUseHours();
```

## GetUseMinutes()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Should the time-span be counted in minutes?

**Example:**

```crmscript theme={null}
NSFieldInfoTimeSpan thing;
Bool useMinutes = thing.GetUseMinutes();
```

## SetDefaultValue(Integer)

```crmscript theme={null}
Void SetDefaultValue(Integer defaultValue)
```

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

**Example:**

```crmscript theme={null}
NSFieldInfoTimeSpan thing;
Integer defaultValue;
thing.SetDefaultValue(defaultValue);
```

## SetUseDays(Bool)

```crmscript theme={null}
Void SetUseDays(Bool useDays)
```

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

**Example:**

```crmscript theme={null}
NSFieldInfoTimeSpan thing;
Bool useDays;
thing.SetUseDays(useDays);
```

## SetUseHours(Bool)

```crmscript theme={null}
Void SetUseHours(Bool useHours)
```

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

**Example:**

```crmscript theme={null}
NSFieldInfoTimeSpan thing;
Bool useHours;
thing.SetUseHours(useHours);
```

## SetUseMinutes(Bool)

```crmscript theme={null}
Void SetUseMinutes(Bool useMinutes)
```

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

**Example:**

```crmscript theme={null}
NSFieldInfoTimeSpan thing;
Bool useMinutes;
thing.SetUseMinutes(useMinutes);
```


## Related topics

- [SuperOffice.WebApi.Data.FieldInfoTimeSpan](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoTimeSpan.md)
- [NSFieldInfoTime](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoTime.md)
- [NSFieldInfoDateTime](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoDateTime.md)
- [ExtraFieldsInfo](/en/automation/crmscript/reference/CRMScript.Native.ExtraFieldsInfo.md)
- [TimeSpan](/en/automation/crmscript/reference/CRMScript.Native.TimeSpan.md)
- [SuperOffice.WebApi.Data.FieldInfoBase](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoBase.md)
