HP-UX Reference (11i v3 07/02) - 5 Miscellaneous Topics (vol 9)
e
environ(5) environ(5)
hh[:mm[:ss
]]
Hour (hh) is any value from 0 through 23. The optional minutes (mm) and
seconds (ss) fields are a value from 0 through 59. The hour field is required. If
offset is preceded by a
-
, the time zone is east of the Prime Meridian. A +
preceding offset indicates that the time zone is west of the Prime Meridian. The
default case is west of the Prime Meridian.
rule rule indicates when to change to and from summer (daylight-savings) time. The
rule has the form :
date/time,date/time
where the first date/time specifies when to change from standard to summer
time, and the second date/time specifies when to change back. The time field is
expressed in current local time.
The form of date should be one of the following :
Jn Julian day n (1 through 365). Leap days are not counted. February
29 cannot be referenced.
n The zero-based Julian day (0 through 365). Leap days are counted.
February 29 can be referenced.
Mm.n.d The d day (0 through 6) of week n (1 through 5) of month m (1
through 12) of the year. Week 5 refers to the last day d of month m.
Week 1 is the week in which the first day of the month falls. Day 0
is Sunday.
time Time has the same format as offset except that no leading sign (
- or
+) is allowed. The default, if time is not given, is 02:00:00.
While the STD field and the offset field for STD must be specified, if the DST field
is also provided, the system will supply default values for other fields not
specified. These default values come from file /usr/lib/tztab
(see tztab(4)),
and, in general, reflect the various historical dates for start and end of summer
time.
Additional names may be placed in the environment by the export command and name
=value arguments in
sh(1), or by exec(2). It is unwise to add names that conflict with the following shell variables frequently
exported by
.profile files: MAIL, PS1, PS2 and IFS.
The environment of a process is accessible from C by using the global variable:
#include <unistd.h>
extern char **environ;
which points to an array of pointers to the strings that comprise the environment. The array is terminated
by a null pointer.
Notes
Coordinated Universal Time (UTC) is equivalent to Greenwich Mean Time (GMT).
EXTERNAL INFLUENCES
International Code Set Support
The LANG, LC_ALL, LC_COLLATE , LC_CTYPE, LC_MESSAGES , LC_MONETARY , LC_NUMERIC ,
LC_TIME, and NLSPATH environment variables provide support for internationalized applications. The
standard utilities make use of these environment variables as described here and in the individual Environ-
ment Variables subsection of the utilities.
If these variables specify locale categories that are not based upon the same underlying codeset, the results
are unspecified, and the behavior of regular expressions APIs’, such as, regcomp, glob, and fnmatch
may be affected.
WARNINGS
Some HP-UX commands and library routines do not use the LANG, LC_COLLATE, LC_CTYPE,
LC_MONETARY , LC_NUMERIC , LC_TIME,orLANGOPTS environment variables. Some commands do
not use message catalogs, so NLSPATH does not affect their behavior. See the EXTERNAL INFLUENCES
138 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: February 2007