# getZonedSecond

Industry: Core

## Signature

```ts
getZonedSecond(ianaTimezone: string): string
```

Return the current second for the specified IANA timeZone.

- Uses Temporal.Now.zonedDateTimeISO() to get the current time.
- 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 second string (zero-padded to 2 digits) or "" on invalid input

## Examples

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

getZonedSecond("Europe/London") // "45"
```

## Source

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