File:  [MW Coherent from dump] / coherent / a / usr / man / COHERENT / settz
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



settz()                   Time Function                   settz()




Set local time zone

#include <time.h>
#include <sys/types.h>
void settz()
extern long timezone; char *tzname[2][16];

settz is one of the  suite of COHERENT functions that control and
display  the system's  time.  It  searches for  the environmental
parameter  TIMEZONE, which  gives information  on the  local time
zone.  For more information on TIMEZONE, see its Lexicon entry.

If  TIMEZONE is  set,  settz initializes  the external  variables
timezone and tzname.   timezone contains the number of seconds to
be subtracted from  GMT to obtain local standard time.  tzname[0]
and tzname[1]  are character arrays that  hold, respectively, the
names  of the  local standard  time zone  and the  local daylight
saving time  zone.  If TIMEZONE is not  set, timezone defaults to
0, tzname[0] to GGMMTT, and tzname[1] to the empty string.

***** See Also *****

date, ftime(), time, TIMEZONE

































COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.