Format
#include <time.h> void tzset(void);
Language Level: XPG4, Extension
tzset uses the environment variable TZ to change the time zone
and daylight saving time (DST) zone values of your current
locale. These values are used by the gmtime and localtime
functions to make corrections from Universal Coordinate Time
(formerly GMT) to local time.
To use tzset, set the TZ variable to the appropriate values. Then call tzset to incorporate the changes in the time zone information into your current locale.
To set TZ from within a program, use putenv before calling tzset.
Notes:
Return Value
There is no return value.
![]()
Application
Runtime Environment Variables
![]()
asctime -- Convert Time to
Character String
_ftime -- Store Current Time
gmtime -- Convert Time
localtime -- Convert Time
mktime -- Convert Local Time
putenv -- Modify Environment
Variables
strftime -- Convert to
Formatted Time
time -- Determine Current Time
<time.h>
TZ Environment Variable