Short: V1.2: hardware clock at GMT util Type: util/time Uploader: pueschel@imsdd.meb.uni-bonn.de Author: pueschel@imsdd.meb.uni-bonn.de ClockDaemon 1.2 Features: --------- - Keeps your hardware clock at GMT (for NetBSD users). - Patches battclock.resource so that reads and writes to the hardware clock are transparently adjusted. - Handles daylight savings time. - Does not need ixemul.library. - Sets IXGMTOFFSET for ixemul.library V 42+. - NEW ! Detects DST start & end while computer is running. - NEW ! Optionally runs command when DST begins or ends. - NEW ! DSTCheck program for use in scripts. Installation: ------------- Copy ClockDaemon and DSTCheck to C:, and add "run >NIL: ClockDaemon " to your User-Startup, where is a program you want to be executed when daylight savings time begins or ends. Store an appropriate (see below) timezone string in ENVARC:TZ. ClockDaemon will set the IXGMTOFFSET variable for ixemul.library V 42 or higher. Do not use ixtimezone ! Reboot and reset your clock to your local time via the Time preferences program. Since version 1.2, ClockDaemon notices the start or end of daylight savings time regardless if your computer is running at that time or not. (If it is not running, the change command will be executed the next time it is switched on.) ATTENTION: The command you want to have executed must terminate or ClockDaemon will hang ! Example (for Germany): ---------------------- User-Startup: run >NIL: ClockDaemon "avail flush" ; to adapt ixemul.library to new DST setting ENVARC:TZ: MET-1MEST,M3.5.0,M9.5.0/03 DSTCheck: --------- The DSTCheck command gives you an easy way to check the DST status in CLI scripts. Its return status is WARN (5) during DST, OK (0) otherwise. Example: DSTCheck If Warn Echo "We have DST !" Else Echo "We don't have DST !" Endif Timezone strings: ----------------- This is a description of valid timezone strings for ENV[ARC]:TZ: "XPG3TZ - time zone information" The form of the time zone information is based on the XPG3 specification of the TZ environment variable. Spaces are allowed only in timezone designations, where they are significant. The following description closely follows the XPG3 specification, except for the paragraphs starting **CLARIFICATION**. [[],[/