home *** CD-ROM | disk | FTP | other *** search
/ World of Ham Radio 1997 / WOHR97_AmSoft_(1997-02-01).iso / misc / terratim / amsoft.iii next >
Text File  |  1997-02-01  |  24KB  |  498 lines

  1.  
  2.  
  3.  
  4.  
  5.          ************************************************************
  6.          *                                                          *
  7.          *                                                          *
  8.          *               T  E  R  R  A  *  T  I  M  E               *
  9.          *                                                          *
  10.          *                        Version 2.1                       *
  11.          *                                                          *
  12.          *                      (C)opyright 1988                    *
  13.          *                    All Rights Reserved                   *
  14.          *                                                          *
  15.          *==========================================================*
  16.          *                                                          *
  17.          *                    GeoGraphics Software                  *
  18.          *                   126 Mountain View Road                 *
  19.          *                    Glastonbury, CT 06033                 *
  20.          *                                                          *
  21.          *----------------------------------------------------------*
  22.          *                                                          *
  23.          *     Terra*Time is user-supported software provided to      *
  24.          *   you at no charge on a trial basis.  If you use this    *
  25.          *   software and find it of value please register your     *
  26.          *     copy for $15.00 and support the shareware concept.   *
  27.          *    Registered users will be provided with information    *
  28.          *    about program updates. Please make checks payable     *
  29.          *          to G. K. Marek at the above address.            *
  30.          *                                                          *
  31.          *      You are encouraged to share this software with      *
  32.          *      others provided that it is distributed complete     *
  33.          *      with documentation and in unmodified form and       *
  34.          *     that no fee or other consideration is charged or     *
  35.          *     accepted.  All commercial, business and government   *
  36.          *           users must register each copy in use.          *
  37.          *                                                          *
  38.          *  We hope you enjoy using Terra*Time.  Your comments and  *
  39.          *  suggestions to improve this product are always welcome. *
  40.          *                                                          *
  41.          *                                                          *
  42.          *                                                          *
  43.          ************************************************************
  44.  
  45.  
  46.  
  47.  
  48.  
  49. PROGRAM DESCRIPTION
  50.  
  51. Terra*Time is a program which tracks and displays the local time in as
  52. many as 44 cities all around the globe.  Unlike other programs of this
  53. type, Terra*Time accounts not only for time zone effects but also for
  54. daylight savings time at each city.  Information is provided on a
  55. full-screen color non- graphics display.  Windows and menu-driven
  56. commands are used for program modifications.  Program options provide
  57. users with the ability to tailor the display for their specific needs.
  58. As many or as few cities as desired can be displayed.  Military or 12
  59. hour clock can be selected and the layout of the world map can be varied
  60. to suit the user.  Additional program features include time zone
  61. differences and great circle distances between cities and a special
  62. alarm feature which can be set for any world city time.
  63.  
  64.  
  65. HARDWARE REQUIREMENTS
  66.  
  67. This program is designed for IBM Personal Computers and close
  68. compatibles.  It will execute on the IBM-PC, PC-XT, and PC-jr.  DOS
  69. Version 2.0 or later is required.  Terra*Time does not require an internal
  70. clock and will accept the time set by you during DOS boot-up.  Of
  71. course, the use of the internal clock will allow for automatic
  72. timekeeping.
  73.  
  74. Since the program relies extensively on color, a color monitor is
  75. recommended.  The program will run, however, unmodified, on the Compaq.
  76. Terra*Time requires about 64K of memory and does not require BASIC to
  77. operate.
  78.  
  79.  
  80. PROGRAM FILES
  81.  
  82. The Terra*Time system comes in five files:
  83.  
  84.          TT.EXE      executable program module
  85.          TT.DAT      default settings and cities information
  86.          TT.DOC      documentation file (ASCII); (this file)
  87.          TTDAT.BAK   a back-up duplicate copy of TT.DAT
  88.          TTREAD.ME   a short program description with latest changes
  89.  
  90. The first two files must reside on the current directory or path for the
  91. program to be accessible.
  92.  
  93. None of these files is copy-protected and it is suggested that a set of
  94. backup files be made and saved in a separate place with your other
  95. archive and backup files.  Save all five files in their original state
  96. to preserve initial program default settings and cities information and
  97. to have a complete package to provide to other users.  Or, save the
  98. original archive file TERRA.EXE and just run it again for a fresh
  99. copy of all the files (TERRA.EXE is a self-extracting archive file).
  100.  
  101. Terra*Time is executed from the current directory or path with this
  102. command at the DOS prompt: TT
  103.  
  104. There are no optional arguments.
  105.  
  106.  
  107. PROGRAM START-UP
  108.  
  109. Upon execution, Terra*Time will load from the current directory and access
  110. the TT.DAT data file to load current settings and cities information.
  111. Once the program and data are loaded, the program no longer requires
  112. these files unless a new configuration is saved to disk for future use.
  113. The program is virtually self-explanatory and uses menus extensively.
  114. The program will load into [AutoTime] mode incorporating the default
  115. values and cities information in TT.DAT at time of execution.
  116.  
  117.  
  118. GENERAL PROGRAM FEATURES
  119.  
  120. Terra*Time generates a stylized world map with cities indicated by three
  121. letter codes.  The map is divided into 24 time zones each of which is
  122. further divided into three twenty-minute segments.  One timezone,
  123. normally the one you are in, is specially designated as the "local"
  124. timezone.  The local timezone (initially set by the program defaults to
  125. New York) is indicated on the top scale by a magenta symbol.  Time and
  126. date details about the local time zone as indicated in the center of the
  127. black area below the world map.  The local time indication is standard
  128. time if it is shown in yellow and daylight savings time if it is shown
  129. in brown.
  130.  
  131. The black background on the map itself indicates the portion of the
  132. globe between 6PM and 6AM (that is, approximately "nighttime") and moves
  133. with the time in twenty minute intervals.  A gray band will appear
  134. momentarily around the display border while the map is being updated.
  135. Cities are indicated on the map in bright yellow if they are presently
  136. on standard time and in brown if they are presently on daylight savings
  137. time.
  138.  
  139.  
  140. HOUR-DAY SCALE
  141.  
  142. Across the bottom of the world map is an hour-day scale with some
  143. features in white and some in yellow.  The white (upper) scale indicates
  144. the STANDARD time in that particular world zone.  One point on this top
  145. scale is the yellow letter M which represents midnight; N indicates
  146. noon.  The lower scale, in yellow, is in the form:
  147.  
  148.                           << Sun | Sat >>
  149.  
  150. and is used to determine the day of the week for any time zone.  The
  151. symbol | represents the International Date Line in the central Pacific
  152. Ocean.  From this symbol to the left (west), it is Sunday until the M
  153. (midnight) symbol is encountered on the scale above.  It is Saturday
  154. toward the east until the M symbol.  Of course, the scale wraps around
  155. at the left and right edges of the map.
  156.  
  157.  
  158. A WORD ABOUT TIME SYSTEMS
  159.  
  160. Terra*Time displays time using the standard US AM/PM 12 Hour Clock and the
  161. International (or Military) 24 Hour Clock.  However, for simplicity, all
  162. INPUTS to Terra*Time must be given using the 24 Hour Clock (the same as
  163. DOS).  Some examples of the relationships between the two systems are
  164. shown below:
  165.  
  166.  
  167.                      US/12 Hr   Intl/24 Hr    Input      Input
  168.                                               HH:MM:SS   HHMM
  169.  
  170.          MIDNIGHT    12:00 AM      00.00      00:00:00   0000
  171.                      12:37 AM  =>  00.37      00:37:00   0037
  172.                       1:24 AM      01.24      01:24:00   0124
  173.                      11:08 AM      11.08      11:08:00   1108
  174.  
  175.          NOON        12:00 PM      12.10      12:00:00   1200
  176.                      12:15 PM  =>  12.15      12:15:00   1215
  177.                       3:59 PM      15.59      15:59:00   1559
  178.                      11:49 PM      23.49      23:49:00   2349
  179.  
  180.  
  181.  
  182. The ACTUAL local time (whether daylight or standard) should be input and
  183. Terra*Time will take care of the rest.  If you have an internal computer
  184. clock, you must set it forward and back during switches between daylight
  185. and standard time just as you do with your other clocks.
  186.  
  187. Some computers have clocks that lose the seconds when time is reset.
  188. For example, the time 10:15:53 would be set to 10:15:00 and 53 seconds
  189. would be lost.  In these cases time adjustments should be made just
  190. after the minute has turned to minimize time loss effect.
  191.  
  192.  
  193.  
  194. PROGRAM FEATURES
  195.  
  196. Terra*Time incorporates a number of special features and options which are
  197. explained below.  These features are accessed by selecting the letter
  198. [F] from the [AutoTime] mode.
  199.  
  200.  
  201. CITY CODES
  202.  
  203. Some features require that a particular world city be identified.  Each
  204. city has been assigned a three letter abbreviation.  These abbreviations
  205. can be changed to suit the user.  For example, the code NYC could be
  206. changed to JFK to represent Kennedy airport, or to HQ, for Corporate
  207. Headquarters (Three letters is a maximum for this code).  It could even
  208. be altered to HFD, for Hartford, Connecticut, a nearby city with the
  209. same parameters as New York.
  210.  
  211.  
  212. ALARM
  213.  
  214. The Terra*Time alarm can be set for a specific time in a specific world
  215. city.  This could be the local time or the time in a foreign location.
  216. For example, assume that you are in New York.  You can set the clock to
  217. ring when it is 7PM (1900) in Paris without having to compute time
  218. differences simply by indicating PAR and 1900 when the alarm is set.
  219. Terra*Time keeps track of the timezones and any savings time that might be
  220. in effect at either city.
  221.  
  222. Activating the alarm will illuminate a note in the lower left corner of
  223. the screen.  The alarm will ring at the appropriate time, chiming every
  224. five seconds for one minute or until any key is selected to stop it.
  225. The alarm will be turned off once it has rung and will have to be
  226. activated again even to ring again at the same time on the next day.
  227. The command [Activate] will engage the alarm with the current settings
  228. unchanged.  The [LOC] city code can be used for local time alarm.  Be
  229. sure to input the alarm time in HHMM format, two digits for the hours
  230. and two for the minutes using a 24 Hour clock.
  231.  
  232.  
  233. TIMEZONES
  234.  
  235. The [TimeZones] feature allows you to check the number of hours
  236. (timezones) any city is ahead or behind any other.  A base zone is
  237. initially set to the local city but can be moved to any other city, one
  238. zone at a time, with the [W]est or [E]ast keys.
  239.  
  240.  
  241. DISTANCES
  242.  
  243. Terra*Time can also compute the distance between any of the cities in the
  244. program database (not just those shown on the map).  A listing of cities
  245. can be selected.  The distance shown is the "great circle distance,"
  246. which is the shortest distance between the two points on a globe.  This
  247. distance is provided in statute miles (ordinary measure) or in nautical
  248. miles, a system used extensively in navigation.  One nautical mile is
  249. about 1.151 statute miles.
  250.  
  251.  
  252. TIMESET/DATESET
  253.  
  254. Times and dates must be valid and follow the format specified.  Dates
  255. cannot precede 1980 since DOS will not recognize any date before
  256. 1-Jan-1980.  Since the Local Time display also computes the
  257. day-of-the-week, this feature will allow the determination of the
  258. day-of-the-week on which some future date will occur, such as a birthday
  259. or Christmas.
  260.  
  261.  
  262. MAPSHIFT
  263.  
  264. The displayed map can be centered on the US, on Europe, or on the Far
  265. East with this option.  There is no effect on the time.
  266.  
  267.  
  268. 12/24 HOUR SELECTION
  269.  
  270. The times displayed with the cities on the map can be presented in
  271. either US 12/Hr format or Intl 24/Hr format using this option.
  272.  
  273.  
  274. LOCALZONE
  275.  
  276. Any city in the Terra*Time city list can be designated the Local time
  277. city.  The Local Time strip in the black area below the map will take on
  278. the attributes of this designated city and the LocalZone marker on the
  279. top scale will move.  When a new LocalZone is selected the times in all
  280. cities remain unchanged.  Only the alarm, local time strip and other
  281. features using the local time are affected.
  282.  
  283.  
  284. HELP COMMAND
  285.  
  286. A Help Screen with a Brief description of these features is available in
  287. a window within the [Settings] option of the program.
  288.  
  289.  
  290. FILE COMMAND
  291.  
  292. When you have chosen a configuration of features and cities that you
  293. prefer, they can be saved to the TT.DAT file and subsequently
  294. automatically loaded with the program.  Any changes made in program
  295. features or options will be in effect only for the remainder of the
  296. current session unless they are saved with the [File] command.  Once a
  297. new configuration is saved (in file TT.DAT) the previous configuration
  298. is lost.  Be sure a backup copy of the original program and data files
  299. has been saved in case you want to start over or reinstate the original
  300. options.  A file called TTDAT.BAK is provided as a backup duplicate of
  301. the original TT.DAT file.  Ensure that the file containing the
  302. information to be displayed is called TT.DAT before the program is run.
  303.  
  304.  
  305. CITIES COMMAND
  306.  
  307. The [Cities] settings command allows the user to see and change the
  308. attributes of the cities provided in the Terra*Time database.  For
  309. example, any city can be excluded or included from the map display.  The
  310. following information about each city is displayed and can be altered as
  311. indicated.
  312.  
  313. CODE - The city code is a one to three letter designation.  This code is
  314. used to identify the city on the map and to select and save city
  315. features.  Any code except LOC can be selected.  For example, NYC could
  316. be replaced by MAN (for Manhattan).
  317.  
  318. INCLUDE/EXCLUDE - If this parameter is set to INCL, the city is included
  319. in the map display; if EXCL is selected, the city will not be displayed.
  320. The [List] command will provide a list of all of the cities in the
  321. Terra*Time database, indicating whether or not they are included in the
  322. display.  Although the default settings do NOT include all of the
  323. cities, all cities are designed to fit on the display map without
  324. overlap (although leaving a somewhat cluttered appearance).
  325.  
  326. ZONE - The zone parameter represents the number of timezones east
  327. (positive) or west (negative) of the Prime Meridian (Greenwich, England)
  328. that the subject city lies.  For example New York Zone is -5.0 and Paris
  329. is 1.0.  Some cities are in timezones which are not an exact integer
  330. number of hours from GMT (Greenwich Mean Time).  Bombay, India, for
  331. example, is 5 and one-half hours ahead of GMT. Its zone is indicated as
  332. 5.30, with the 30 indicating 30 minutes more advance than five hours.
  333. The zone parameter is for information purposes and should not ordinarily
  334. be changed.
  335.  
  336. DAYLIGHT
  337.  
  338. This parameter is either 1 (if Daylight Savings Time is ever applicable
  339. to this city) or 0 (if is not).
  340.  
  341.  
  342. START
  343.  
  344. This is a four digit value which indicates the month and day that is the
  345. first day of daylight savings time.  It is specified in the form MMDD,
  346. so 0531 would mean May 31st is the first day of daylight savings time.
  347. DD can be specified as 00 to indicate that the day should be the last
  348. Sunday of that particular month; for example 0400 would mean that
  349. daylight savings time should start the last Sunday of April.
  350.  
  351.  
  352. END
  353.  
  354. This value indicates the LAST day of daylight savings time.  Otherwise,
  355. the comments indicated above for START apply.  Note that it is possible
  356. for the END date to precede the START date when summer comes in the
  357. months of December, January and February as it does in the Southern
  358. hemisphere.
  359.  
  360.  
  361. DAYLIGHT SAVINGS TIME
  362.  
  363. Daylight savings time is a convenience adopted by many localities during
  364. the summer months depending upon their particular needs and their
  365. geographic location.  The information provided for the cities in
  366. Terra*Time was accurate for 1987-1988.  But these rules are subject to
  367. change depending upon legislation in each country.  For this reason
  368. Terra*Time allows the changing and saving of information relating to
  369. daylight savings time in the [Cities] menu.  Data regarding country time
  370. zones and daylight savings time rules is available from the local
  371. library or in a reference called the Official Airline Guide (copyright
  372. Reuben Donnelly & Co.) which is published monthly and used by most
  373. travel agents in the United States.
  374.  
  375.  
  376. ADVANCED PROGRAMMING CONSIDERATIONS
  377.  
  378. Terra*Time is compiled in Basic and reads all of the city information as
  379. well as the default settings from an ASCII file called TT.DAT.  This
  380. file can be editted with any text editor.  The first line of the data
  381. file contains a 30 character header which will appear centered on the
  382. top portion of the display.  This line can be revised to display any
  383. heading the user desires.  The next two lines of the file contain
  384. default settings, followed by 44 lines of city data and a terminating
  385. line.  Only advanced users should revise this file since its formatting
  386. is critical to ensure proper reading of the data by the program.  Always
  387. keep a backup copy just in case.  There is little value to changing the
  388. second and third (default values) lines of this file, but it may be
  389. useful to edit the cities data on the next 44 lines if extensive
  390. revisions are desired.  The format of some typical city data lines is
  391. presented here:
  392.  
  393. COLUMN   1         2         3         4         5         6         7
  394. 12345678901234567890123456789012345678901234567890123456789012345678901
  395.  
  396. FIELD A         B     C     D    E     F   G     H     I     J      K
  397.  
  398. "CAPETOWN",     0,  "CPT", 231, 18,   2.0, 0,    0,    0, -32.83, -17.88
  399. "CARACAS",      1,  "CAR",  50, 13,  -4.0, 0,    0,    0,  11.00,  67.63
  400. "CHICAGO",      0,  "CHI",  71,  8,  -6.0, 1,  405, 1000,  42.63,  88.50
  401.  
  402.  
  403.  
  404.  
  405. A comma must delimit each field and the alpha characters must be in
  406. quotes as shown.  The fields have the following meanings:
  407.  
  408. A => The city name
  409. B => Code to include plotting on map for that city (1) or not (0)
  410. C => One to three letter city code for plotting on map
  411. D => A code for horizontal plotting location of that city (see below)
  412. E => A code for vertical plotting location of that city (see below)
  413. F => The time zone from Greenwich, England, with eastbound positive
  414. G => Code to indicate daylight savings time is applicable (1) or not (0)
  415. H => Code for start of daylight savings time (described in START above)
  416. I => Code for end of daylight savings time (described in END above)
  417. J => Latitude of city in Degrees and Minutes, with North positive
  418. K => Longitude of city in Degrees and Minutes, with West positive
  419.  
  420. The 44 cities have been carefully selected and plotted so they remain
  421. true to their intended time zone but so that no two can overlap no
  422. matter how they are displayed.  Thus any or all cities can be displayed
  423. at once.  Changing Code D or E will cause different plotting locations
  424. and could result in overlaid data or program problems.
  425.  
  426. Code E is a number between 6 and 19 which represents the vertical
  427. plotting location for the given city.  The sixth row down is the highest
  428. (northernmost) plotting location.  The 13th row represents cities that
  429. fall along the equator such as Dakar, in Africa.  The 19th row is the
  430. southernmost plotting position and Auckland, New Zealand, is at this
  431. lower latitude.  You will be able to tell where to plot a new city by
  432. looking at the value of Code E for the cities around it.  All selections
  433. for this parameter must be integers from 6 to 19.  The remainder of the
  434. screen is reserved and other values will produce unpredictable results.
  435.  
  436. Code D is a value which determines the horizontal plotting location of a
  437. particular city.  This code is more complicated than Code E and must be
  438. deciphered to be understood.  The map grid is divided into 24 horizontal
  439. areas, each of which allow three plotting positions, for a total of 72
  440. horizontal plotting locations.  If the last digit of Code D is dropped,
  441. the remaining value is always between 1 and 24.  This code represents
  442. one of the 24 plotting regions starting with London as 1 and moving
  443. westward with New York as 6, Hong Kong as 16, Bombay as 20, and finally
  444. Paris as 24 (since it is east of the Prime Meridian).  Note that the
  445. last digit of the code is always a 0, 1, or 2.  This digit represents
  446. the plotting position of the point within the main region with 0
  447. westmost, 1 central and 2 eastmost plotted.  Thus Chicago, with Code D
  448. of 71, is plotted in the central portion of the 7th zone west of zero
  449. degrees latitude (London).  Note that from west to east the plotting
  450. codes would follow a sequence such as 70,71,72,60,61,62,50,51 etc.
  451. Again, unpredictable results will occur if these conventions are not
  452. followed.
  453.  
  454. Remember that some of the cities in the program have been moved slightly
  455. from their true geographic positions so that they could all fit on the
  456. map at once if so desired.  If you plan to use fewer cities they could
  457. probably be plotted more precisely without worry of overlap.
  458.  
  459. Since there has been much interest in plotting other US cities, below is
  460. a list of more precise plotting codes for some of them.  Turn off (or
  461. "EXCLude") the US cities you don't want that would overlap and replace
  462. one of them with the info for your home city.  You can have no more than
  463. 44 cities in the data file (although you can have fewer).  Never delete
  464. the last line of the data file since it is a signal for the program that
  465. all the city data has been read in.
  466.  
  467. City               Code D     Code E
  468. --------------     -------    -------
  469. Atlanta             60         11
  470. Boston              62         10
  471. Chicago             60         10
  472. Dallas              82         11
  473. Denver              80         10
  474. Detroit             60         10
  475. Los Angeles         92         11
  476. Miami               60         11
  477. Minneapolis         70          9
  478. Montreal            62          9
  479. New York            62         10
  480. San Francisco       91         10
  481. Seattle             91          9
  482. Washington DC       62         10
  483. Vancouver           91          9
  484.  
  485. This program uses special functions from the excellent Advanced Function
  486. Library for the Basic Compiler called ADVBAS.LIB v3.4, (C) Thomas Hanlin
  487. III, Alexandria, VA, available on many bulletin boards.
  488.  
  489. Some copies of Terra*Time are distributed via an excellent self-
  490. extracting archive program called PKARC version 3.5, dated 27 April
  491. 1987, and available from PKWARE, Inc., 7032 Ardara Avenue, Glendale, WI
  492. 53209.
  493.  
  494. I hope Terra*Time will prove to be of value to you.  Please contact the
  495. author with any problems, useful comments or suggestions at the address
  496. at the top of this file.
  497.  
  498.