timezone

Updated: October 28, 2024

The number of seconds by which the local time zone is earlier than UTC

Synopsis:

#include <time.h>

long int timezone;

Description:

This global variable holds the number of seconds by which the local time zone is earlier than Coordinated Universal Time (UTC) (formerly known as Greenwich Mean Time). Whenever you call a time function, tzset() is called to set the variable, based on the current time zone.

Classification:

POSIX 1003.1 XSI