|
|
1.1 ! root 1: ! 2: ! 3: settz() Time Function settz() ! 4: ! 5: ! 6: ! 7: ! 8: Set local time zone ! 9: ! 10: #include <time.h> ! 11: #include <sys/types.h> ! 12: void settz() ! 13: extern long timezone; char *tzname[2][16]; ! 14: ! 15: settz is one of the suite of COHERENT functions that control and ! 16: display the system's time. It searches for the environmental ! 17: parameter TIMEZONE, which gives information on the local time ! 18: zone. For more information on TIMEZONE, see its Lexicon entry. ! 19: ! 20: If TIMEZONE is set, settz initializes the external variables ! 21: timezone and tzname. timezone contains the number of seconds to ! 22: be subtracted from GMT to obtain local standard time. tzname[0] ! 23: and tzname[1] are character arrays that hold, respectively, the ! 24: names of the local standard time zone and the local daylight ! 25: saving time zone. If TIMEZONE is not set, timezone defaults to ! 26: 0, tzname[0] to GGMMTT, and tzname[1] to the empty string. ! 27: ! 28: ***** See Also ***** ! 29: ! 30: date, ftime(), time, TIMEZONE ! 31: ! 32: ! 33: ! 34: ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.