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

# TimeZone

> Gives access to timezone info. Call the global function getLocalTimeZone() to get the object.

Gives access to timezone info. Call the global function getLocalTimeZone() to get the object.

## Constructors

### TimeZone()

```crmscript theme={null}
TimeZone
```

Initializes a new instance of the TimeZone class.

## Methods

## getTimeZone()

This functions will give you the difference from GMT in hours and minutes.

```crmscript theme={null}
String getTimeZone()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The time zone string on the form "+0100", "-0545" etc.

## getTimeZoneSecs()

Difference from GMT in seconds.

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Difference from GMT in seconds.


## Related topics

- [TimeZones](/en/api/archive-providers/reference/timezones.md)
- [Delete Time Zones](/en/api/reference/restful/agent/timezone_agent/delete-time-zones.md)
- [Time Of Last Time Zone Update](/en/api/reference/restful/agent/timezone_agent/time-of-last-time-zone-update.md)
- [Get Time Zones Archive](/en/api/reference/restful/rest/timezone/get-time-zones-archive.md)
- [Update Time Zone Data](/en/api/reference/restful/agent/timezone_agent/update-time-zone-data.md)
- [Initialize Time Zone Data](/en/api/reference/restful/agent/timezone_agent/initialize-time-zone-data.md)
