# getZonedOffset

Industry: Core

## Signature

```ts
getZonedOffset(value: string): string
```

Extract the UTC offset from an ISO 8601 zoned datetime string.

- Returns the offset in Temporal's ±HH:MM string form.
- This is a value-taking accessor (per J0b's `get/` rule), so it lives in `parse/` alongside `parseTimeZoneFromZoned`, not `get/`.
- Returns "" for invalid input.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `string` | zoned ISO 8601 datetime string |

## Returns

offset string (e.g. "-04:00"), or "" on invalid input

## Examples

```ts
import { getZonedOffset } from "@northguild/gmt/zoned/parse";

getZonedOffset("2024-02-29T12:34:56.789+00:00[UTC]") // "+00:00"
```

## Source

[zoned/parse/getZonedOffset.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/zoned/parse/getZonedOffset.ts)
