---
name: "timezone"
section: "3"
platform: "macos"
package: "Libc"
version: "1752.120.2"
release: "macOS 26.5"
platforms: ["linux", "freebsd", "macos"]
url: "https://new.carta.tech/timezone"
---

# timezone(3)

return the timezone abbreviation

## NAME

**timezone** – return the timezone abbreviation

## LIBRARY

Standard C Library (libc, -lc)

## SYNOPSIS

*char* *\**\

**timezone**(*int zone*, *int dst*);

## DESCRIPTION

This interface is for compatibility only; it is impossible to reliably map timezone's arguments to a time zone abbreviation. See [ctime(3)](/ctime/3.md).

The **timezone**() function returns a pointer to a time zone abbreviation for the specified *zone* and *dst* values. The *zone* argument is the number of minutes west of GMT and *dst* is non-zero if daylight savings time is in effect.

## SEE ALSO

[ctime(3)](/ctime/3.md)

## HISTORY

A **timezone**() function appeared in Version 7 AT&T UNIX.
