# getZonedWeekOfYear

Industry: Core

## Signature

```ts
getZonedWeekOfYear(ianaTimezone: string): number | null
```

Return the current week of year for the specified IANA timeZone.

- Uses Temporal.Now.zonedDateTimeISO() to get the current time.
- Uses Temporal.PlainDate.weekOfYear for ISO week number.
- Validation is performed on the timezone.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `ianaTimezone` | `string` | IANA name or UTC offset: a time zone identifier (`+05:30`, `+0530`, `-08`) or a stored offset (`±HH:MM[:SS]`, what `getTimeZoneOffset` returns) |

## Returns

current week number (1-53) or null on invalid input

## Examples

```ts
import { getZonedWeekOfYear } from "@northguild/gmt/zoned/get";

getZonedWeekOfYear("America/Sao_Paulo") // 9
```

## Source

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