timezone(3)

timezone3

Return the timezone abbreviation

Usage

char *

timezone(int zone, int dst);

Library

Standard C Library (libc, -lc)

Overview

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

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.

Releases

163 releases since Mac OS X 10.0; the text changed 3 times.

  1. 10.0–10.1.5
  2. 10.2–10.2.8
  3. 10.3–10.6.8
  4. 10.7–26.5

History

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

From Libc 1752.120.2 in macOS 26.5. Parsed by carta from the page's mdoc source.