home *** CD-ROM | disk | FTP | other *** search
/ Programmer's ROM - The Computer Language Library / programmersrom.iso / ada / math / date.pro < prev    next >
Encoding:
Text File  |  1988-05-03  |  3.3 KB  |  85 lines

  1.  
  2. -------- SIMTEL20 Ada Software Repository Prologue ------------
  3. --
  4. -- Unit name    : generic package date_package
  5. -- Version      : 1.0
  6. -- Authors      : David G. Gawron
  7. --              : Dr. Mars J. Gralia
  8. --              : The Johns Hopkins University
  9. --              : Applied Physics Laboratory
  10. --              : Johns Hopkins Road
  11. --              : Laurel, Maryland  20707
  12. -- DDN Address  : dgg@aplvax gralia@aplvax
  13. -- Copyright    : (c) 1986 David G. Gawron, Dr. Mars J. Gralia
  14. -- Date created :  October  1986
  15. -- Release date :  November 1986
  16. -- Last update  :  Gawron, October  1986
  17. -- Machine/System Compiled/Run on : DEC VAX 11/750, DEC Ada v1.3
  18. --
  19. ---------------------------------------------------------------
  20. --
  21. -- Keywords     :  Calendar, Date, Julian Date
  22. --
  23. -- Abstract     :  
  24. --
  25. --   This generic package provides arithmetic and logical operations
  26. -- for dates.  It strongly parallels the required CALENDAR
  27. -- package, but differs primarily in the range of dates handled.
  28. -- Like CALENDAR, routines such as SPLIT, MONTH, DAY, and YEAR
  29. -- are available.
  30. --
  31. --   The differences between this package and CALENDAR are reflected
  32. -- in the range of dates, the inclusion of a DAY_NAME function,
  33. -- and the ability to specify a date with a year and an annual
  34. -- Julian day number *.  A day is the smallest unit of time in
  35. -- this package.
  36. --
  37. --   An important feature is the ability to subtract dates over
  38. -- the full range of years.  Thus, you can for example, calculate
  39. -- the number of days between 10/15/1986 and 1/1/1988.  Another
  40. -- important feature is the ability to add (or subtract) x number
  41. -- of days from a date and obtain a date x days in the future
  42. -- (or past).
  43. --
  44. --   The package fully accounts for leap years and validates all
  45. -- dates given by a user.
  46. --
  47. --
  48. -- * An annual Julian day number counts the days in a year.
  49. --   For example, December 31 has an annual Julian day number of
  50. --   365 for non-leap years and 366 for leap years.
  51. --
  52. ------------------ Revision history ---------------------------
  53. --
  54. -- DATE         VERSION    AUTHOR                  HISTORY
  55. -- 10/86        1.0     Gawron                  Initial release
  56. --
  57. ------------------ Distribution and Copyright -----------------
  58. --
  59. -- This prologue must be included in all copies of this software.
  60. --
  61. -- This software is copyright by the author.
  62. --
  63. -- This software is released to the Ada community.
  64. -- Restrictions on use or distribution:  NONE
  65. --
  66. ------------------ Disclaimer ---------------------------------
  67. --
  68. -- This software and its documentation are provided "AS IS" and
  69. -- without any expressed or implied warranties whatsoever.
  70. -- No warranties as to performance, merchantability, or fitness
  71. -- for a particular purpose exist.
  72. --
  73. -- Because of the diversity of conditions and hardware under
  74. -- which this software may be used, no warranty of fitness for
  75. -- a particular purpose is offered.  The user is advised to
  76. -- test the software thoroughly before relying on it.  The user
  77. -- must assume the entire risk and liability of using this
  78. -- software.
  79. --
  80. -- In no event shall any person or organization of people be
  81. -- held responsible for any direct, indirect, consequential
  82. -- or inconsequential damages or lost profits.
  83. --
  84. -------------------END-PROLOGUE--------------------------------
  85.