HP C/iX Library Reference Manual (30026-90004)
Chapter 5 377
HP C/iX Library Function Descriptions
tzset
tzset
Sets time zone conversion information.
Syntax
#include <time.h> /* proto */
void tzset (void);
Parameters
None.
Return Values
None.
Description
The tzset function uses the value of the user-deļ¬ned environment variable TZ to set time
conversion information used by localtime(), ctime(), strftime(), and mktime().
The tzset() function sets the external variable tzname:
extern char
*tzname[2]
={"
std
", "
dst
"};
where
std
and
dst
are described in the HP C/iX Library Reference Manual. If no TZ
environment variable exists, Eastern Standard Time (EST) and Eastern Daylight Time
(EDT) for the United States are used (EST5EDT is assumed for TZ).
See Also
localtime(), ctime(), strftime(), mktime(), POSIX.1 8.3.2