You are previewing Calendrical Calculations, Third Edition.
O'Reilly logo
Calendrical Calculations, Third Edition

Book Description

A valuable resource for working programmers, as well as a fount of useful algorithmic tools for computer scientists, this new edition of the popular calendars book expands the treatment of the previous edition to new calendar variants: generic cyclical calendars and astronomical lunar calendars as well as the Korean, Vietnamese, Aztec, and Tibetan calendars. The authors frame the calendars of the world in a completely algorithmic form, allowing easy conversion among these calendars and the determination of secular and religious holidays. LISP code for all the algorithms are available on the Web.

Table of Contents

  1. Cover
  2. Title
  3. Copyright
  4. Front
  5. Contents
  6. List of Frontispieces
  7. List of Figures
  8. List of Tables
  9. Abbreviations
  10. Mathematical Notations
  11. Preface
  12. Credits
  13. License and Limited Warranty and Remedy
  14. 1 Calendar Basics
    1. 1.1 Calendar Units and Taxonomy
    2. 1.2 Fixed Day Numbers
    3. 1.3 Negative Years
    4. 1.4 Epochs
    5. 1.5 Julian Day Numbers
    6. 1.6 Mathematical Notation
    7. 1.7 Search
    8. 1.8 Dates and Lists
    9. 1.9 A Simple Calendar
    10. 1.10 Cycles of Days
    11. 1.11 Simultaneous Cycles
    12. 1.12 Cycles of Years
    13. 1.13 Warnings about the Calculations
    14. References
  15. I Arithmetical Calendars
    1. 2 The Gregorian Calendar
      1. 2.1 Structure
      2. 2.2 Implementation
      3. 2.3 Alternative Formulas
      4. 2.4 The Zeller Congruence
      5. 2.5 Holidays
      6. References
    2. 3 The Julian Calendar
      1. 3.1 Structure and Implementation
      2. 3.2 Roman Nomenclature
      3. 3.3 Roman Years
      4. 3.4 Holidays
      5. References
    3. 4 The Coptic and Ethiopic Calendars
      1. 4.1 The Coptic Calendar
      2. 4.2 The Ethiopic Calendar
      3. 4.3 Holidays
      4. References
    4. 5 The ISO Calendar
      1. Reference
    5. 6 The Islamic Calendar
      1. 6.1 Structure and Implementation
      2. 6.2 Holidays
      3. References
    6. 7 The Hebrew Calendar
      1. 7.1 Structure and History
      2. 7.2 Implementation
      3. 7.3 Holidays and Fast Days
      4. 7.4 Personal Days
      5. 7.5 Possible Days of Week
      6. References
    7. 8 The Ecclesiastical Calendars
      1. 8.1 Orthodox Easter
      2. 8.2 Gregorian Easter
      3. 8.3 Astronomical Easter
      4. 8.4 Movable Christian Holidays
      5. References
    8. 9 The Old Hindu Calendars
      1. 9.1 Structure and History
      2. 9.2 The Solar Calendar
      3. 9.3 The Lunisolar Calendar
      4. References
    9. 10 The Mayan Calendars
      1. 10.1 The Long Count
      2. 10.2 The Haab and Tzolkin Calendars
      3. 10.3 The Aztec Calendars
      4. References
    10. 11 The Balinese Pawukon Calendar
      1. 11.1 Structure and Implementation
      2. 11.2 Conjunction Days
      3. References
    11. 12 Generic Cyclical Calendars
      1. 12.1 Single Cycle Calendars
      2. 12.2 Double Cycle Calendars
      3. 12.3 Summary
  16. II Astronomical Calendars
    1. 13 Time and Astronomy
      1. 13.1 Position
      2. 13.2 Time
      3. 13.3 The Day
      4. 13.4 The Year
      5. 13.5 Astronomical Solar Calendars
      6. 13.6 The Month
      7. 13.7 Times of Day
      8. References
    2. 14 The Persian Calendar
      1. 14.1 Structure
      2. 14.2 The Astronomical Calendar
      3. 14.3 The Arithmetic Calendar
      4. 14.4 Holidays
      5. References
    3. 15 The Bahá’í Calendar
      1. 15.1 Structure
      2. 15.2 Western Version
      3. 15.3 The Future Bahá’í Calendar
      4. 15.4 Holidays
      5. References
    4. 16 The French Revolutionary Calendar
      1. 16.1 The Original Form
      2. 16.2 The Modified Arithmetical Form
      3. References
    5. 17 The Chinese Calendar
      1. 17.1 Solar Terms
      2. 17.2 Months
      3. 17.3 Conversions to and from Fixed Dates
      4. 17.4 The Sexagesimal Cycle of Names
      5. 17.5 Common Misconceptions
      6. 17.6 Holidays
      7. 17.7 Chinese Age
      8. 17.8 Chinese Marriage Auguries
      9. 17.9 The Japanese Calendar
      10. 17.10 The Korean Calendar
      11. 17.11 The Vietnamese Calendar
      12. References
    6. 18 The Modern Hindu Calendars
      1. 18.1 Hindu Astronomy
      2. 18.2 Calendars
      3. 18.3 Sunrise
      4. 18.4 Alternatives
      5. 18.5 Astronomical Versions
      6. 18.6 Holidays
      7. References
    7. 19 The Tibetan Calendar
      1. 19.1 Calendar
      2. 19.2 Holidays
      3. References
    8. 20 Astronomical Lunar Calendars
      1. 20.1 Astronomical Easter
      2. 20.2 Lunar Crescent Visibility
      3. 20.3 The Observational Islamic Calendar
      4. 20.4 The Classical Hebrew Calendar
      5. References
    9. Coda
  17. III APPENDICES
    1. A Function, Parameter, and Constant Types
      1. A.1 Types
      2. A.2 Function Types
      3. A.3 Constant Types and Values
    2. B Lisp Implementation
      1. B.1 Lisp Preliminaries
      2. B.2 Basic Code
      3. B.3 The Egyptian/Armenian Calendars
      4. B.4 Cycles of Days
      5. B.5 The Gregorian Calendar
      6. B.6 The Julian Calendar
      7. B.7 The Coptic and Ethiopic Calendars
      8. B.8 The ISO Calendar
      9. B.9 The Islamic Calendar
      10. B.10 The Hebrew Calendar
      11. B.11 The Ecclesiastical Calendars
      12. B.12 The Old Hindu Calendars
      13. B.13 The Mayan Calendars
      14. B.14 The Balinese Pawukon Calendar
      15. B.15 Time and Astronomy
      16. B.16 The Persian Calendar
      17. B.17 The Bahá’í Calendar
      18. B.18 The French Revolutionary Calendar
      19. B.19 The Chinese Calendar
      20. B.20 The Modern Hindu Calendars
      21. B.21 The Tibetan Calendar
      22. B.22 Astronomical Lunar Calendars
      23. Reference
    3. C Sample Data
      1. References
  18. Index
  19. Envoi
  20. About the Cover