home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / DSTIME11.ZIP / DSTIME.DOC next >
Text File  |  1993-08-11  |  10KB  |  231 lines

  1.  
  2.  
  3.  
  4.  
  5.           ====================================================== DSTIME
  6.                                     (c) Copyright 1993 Nathan Alan King
  7.  
  8.  
  9.  
  10.  
  11.           --------------------------------------------------- OVERVIEW
  12.  
  13.           Daylight Saving Time (DST) provides more usable hours of
  14.           daylight for human activities by setting clocks ahead one
  15.           hour in the spring and back one hour in the fall. Although
  16.           the amount of actual daylight remains the same, more daylight
  17.           hours are available for outdoor work and recreation in the
  18.           late afternoon and evening.  DST can also reduce the amount
  19.           of power used for lighting.
  20.  
  21.           In most parts of the United States, year-round DST was
  22.           adopted during World War II.  DST was extended during 1974
  23.           and 1975 because of the U.S. energy crisis.  Now it is in
  24.           effect only during that part of the year when daylight hours
  25.           are the longest. Congress fixed this period as extending, as
  26.           of 1987, from the first (previously the last) Sunday in April
  27.           to the last Sunday in October.  (These are the default
  28.           settings for DSTIME.)
  29.  
  30.           Of course, Congress can change the standards at any time.
  31.           One proposed bill in Congress would have DST begin on the
  32.           third Sunday in March and end on the first Sunday in
  33.           November.  The bill includes a provision to consider the
  34.           feasibility of advancing clocks an additional hour during the
  35.           summer months, for a total of four time changes a year:
  36.           advance an hour in early spring, advance another hour in
  37.           early summer, set back an hour in late summer, and set back
  38.           to Standard Time in late fall.  With DSTIME you can handle
  39.           even such a complicated scheme; see MULTIPLE TIME SHIFTS
  40.           later in this manual.
  41.  
  42.           The DSTIME program lets you leave your hardware clock in
  43.           Standard Time all year long while adjusting the DOS clock for
  44.           DST each time you turn on or boot your computer.  DSTIME also
  45.           takes into consideration any logical future change in DST by
  46.           letting you change the settings used by the program.
  47.  
  48.           DSTIME takes advantage of the fact that most IBM-compatibles
  49.           have both a hardware clock and a separate clock kept by the
  50.           operating system (DOS).
  51.  
  52.           Every IBM-compatible computer beginning with the 80286-based
  53.           machines has a built-in, battery-powered clock that keeps
  54.           track of the time and date even when the computer is turned
  55.           off.  In addition, many earlier compatibles are equipped with
  56.           add-on clock cards that accomplish the same thing.  These are
  57.           "hardware" clocks.  To change their settings you must use the
  58.           DOS SETUP program or the software that came with the clock
  59.           card.
  60.  
  61.                                                         DSTIME / Page 2
  62.  
  63.  
  64.  
  65.           Every IBM-compatible computer runs a "system" (DOS) clock
  66.           that is set from the hardware clock when the computer is
  67.           turned on.  Once the DOS time and date are set from the
  68.           hardware clock, DOS keeps its system clock running as long as
  69.           the computer is on.  The time and date kept by DOS are used
  70.           by the operating system and the software you run on your
  71.           computer.
  72.  
  73.           -------------------------------------- DSTIME in AUTOEXEC.BAT
  74.  
  75.           Make sure that DSTIME with no parameters is in your
  76.           AUTOEXEC.BAT file after any calls to the hardware clock and
  77.           before any other programs are run.  For example, your
  78.           AUTOEXEC.BAT file might look in part like this:
  79.  
  80.                rem : set the dos prompt
  81.                PROMPT $P$G
  82.                rem : set dos clock from clock card
  83.                rem : (not necessary is '286 or higher machines)
  84.                AUTOTIME
  85.                DSTIME
  86.                rem : (other commands might follow in your AUTOEXEC.BAT)
  87.  
  88.           ---------------------------------------------- RUNNING DSTIME
  89.  
  90.           DSTIME can be run in five ways, depending upon what you type
  91.           at the DOS command line.  The five options are listed below.
  92.  
  93.             DSTIME
  94.             DSTIME ?
  95.             DSTIME -
  96.             DSTIME +
  97.             DSTIME =
  98.  
  99.                                      DSTIME
  100.  
  101.           Running the program with a command of "DSTIME" with no
  102.           additional command-line parameters checks to see if the
  103.           current date and time are within the period of DST.  If so,
  104.           the program sets the DOS clock ahead by appropriate number of
  105.           hours.  (This will likely always be one hour, although you
  106.           can reset it in case Congress specifies a larger number of
  107.           hours.)
  108.  
  109.                                     DSTIME ?
  110.  
  111.           Running the program with a command of "DSTIME ?" displays two
  112.           help screens that tell you a bit about how to use the
  113.           program.  The current DST settings are displayed as part of
  114.           the help screens.  DSTIME makes no change to the DOS clock
  115.           when run in this way.
  116.  
  117.                                                         DSTIME / Page 3
  118.  
  119.  
  120.                                     DSTIME -
  121.  
  122.           Running the program with a command of "DSTIME -" sets the DOS
  123.           clock back one hour regardless of whether the current date
  124.           and time are within DST.  This option is included in case you
  125.           inadvertently run DSTIME more than once after you turn on
  126.           your computer.  (You could also reboot to set DOS to the
  127.           proper time.)
  128.  
  129.                                     DSTIME +
  130.  
  131.           Running the program with a command of "DSTIME +" sets the DOS
  132.           clock back one hour regardless of whether the current date
  133.           and time are within DST.  This option is included in case you
  134.           inadvertently run "DSTIME -" more times than necessary to
  135.           correct the DOS time.  (You could also reboot to set DOS to
  136.           the proper time.)
  137.  
  138.                                     DSTIME =
  139.  
  140.           Running the program with a command of "DSTIME =" displays a
  141.           menu from which you can change the settings for DST.  Use
  142.           this option only if Congress mandates new DST standards.  The
  143.           current DST settings are displayed as you change settings so
  144.           you can see if you the new settings are correct.  DSTIME
  145.           makes no change to the DOS clock when run in this way.
  146.  
  147.           When you run DSTIME in this way, you see a main menu with the
  148.           following choices:
  149.  
  150.                  1  Set DST start date
  151.                  2  Set DST end date
  152.                  3  Set DST change time
  153.                  4  Set DST time difference
  154.                  5  Restore default settings
  155.                  6  Finished - settings are correct
  156.                  0  Quit without changing settings
  157.  
  158.                Press the key of your choice (1-6,0).
  159.  
  160.           The sub-menus are self-explanatory.  Just follow the
  161.           instructions displayed on the screen.
  162.  
  163.           ---------------------------------------- MULTIPLE TIME SHIFTS
  164.  
  165.           Should Congress decide to add an hour in the spring and again
  166.           in the early summer, and then set back an hour in the late
  167.           summer and the fall, DSTIME can still handle the changes.
  168.  
  169.           To keep up with the changes you must have two copies of
  170.           DSTIME.EXE with different names, each with its own settings
  171.           for two of the time shifts.
  172.  
  173.                                                         DSTIME / Page 4
  174.  
  175.  
  176.           To make another copy, go to the directory where you keep
  177.           DSTIME.EXE, and then type the following command at the DOS
  178.           prompt:
  179.  
  180.                COPY DSTIME.EXE DSTIME2.EXE
  181.  
  182.           This will make a copy of the DSTIME program, but the new
  183.           copy's name will be DSTIME2.EXE.  Now, run DSTIME in the
  184.           resetting mode by giving DOS the following command:
  185.  
  186.                DSTIME =
  187.  
  188.           Follow the menus and prompts to set DSTIME for the first and
  189.           last time shifts (early spring and late fall).
  190.  
  191.           Run DSTIME2 in the resetting mode by giving DOS the following
  192.           command:
  193.  
  194.                DSTIME2 =
  195.  
  196.           Follow the menus and prompts to set DSTIME2 for the second
  197.           and third time shifts (early summer and late summer).
  198.  
  199.           Make sure that DSTIME and DSTIME2 are in your AUTOEXEC.BAT
  200.           file after any calls to the hardware clock and before any
  201.           other programs are run.
  202.  
  203.                                                         DSTIME / Page 5
  204.  
  205.  
  206.           -------------------------------------------- SHAREWARE NOTICE
  207.  
  208.                 DSTIME (c) 1993 Nathan Alan King, All Rights Reserved
  209.  
  210.           This program is released as shareware.  If you find it useful,
  211.           please send a check or money order for $8.00 to:
  212.  
  213.                          Nathan Alan King
  214.                          3928 Leafield Drive
  215.                          Austin, TX 78749
  216.  
  217.           You may copy and distribute this program provided you do not alter
  218.           it or charge for it.  Your comments are welcome at the above
  219.           address or through CompuServe, User 72737,324.
  220.  
  221.           Shareware by Nathan Alan King:
  222.                 - FRETS, a computerized chord and key chart for guitar
  223.                 - KEYPAD, a ten-key tutorial and practice program
  224.                 - LOG, a simple project logging program
  225.                 - STREAM, a version of LOG for writers
  226.                 - TEXAS, a Lone Star Flag graphics program
  227.  
  228.           Write for information about ScripTypist (tm), a non-shareware
  229.           program that makes screenplay pagination and printing a
  230.           pleasure instead of a chore.
  231.