# getUnixYear

Industry: Core

## Signature

```ts
getUnixYear(): string
```

Return the current year from the Unix timestamp in UTC as a zero-padded string.

- Uses Temporal.Now.instant() converted to UTC zoned date time.
- Returns zero-padded string to 4 digits.
- A year outside 0000–9999 is written with a sign and six digits (`+010000`, `-000005`), as Temporal writes it at the head of a date.

## Returns

current year string (zero-padded to 4 digits)

## Examples

```ts
import { getUnixYear } from "@northguild/gmt/unix/get";

getUnixYear() // "2024"
```

## Source

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