# Google API Common Protos Client - Class TimeZone (4.14.0)

4.14.0 (latest) 4.13.0 4.12.5 4.11.0 4.10.0 4.9.0 4.8.3 Reference documentation and code samples for the Google API Common Protos Client class TimeZone.

Represents a time zone from the
[IANA Time Zone Database](https://www.iana.org/time-zones).

Generated from protobuf message `google.type.TimeZone`

## Namespace

Google \\ Type

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` IANA Time Zone Database time zone. For example "America/New_York". |
| `↳ version` | `string` Optional. IANA Time Zone Database version number. For example "2019a". |

### getId

IANA Time Zone Database time zone. For example "America/New_York".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setId

IANA Time Zone Database time zone. For example "America/New_York".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVersion

Optional. IANA Time Zone Database version number. For example "2019a".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setVersion

Optional. IANA Time Zone Database version number. For example "2019a".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |