HTTPS SSH

CalendarCalc

A VFP set of classes to hold calendrical information, and perform simple calculations.

Overview

  • Use these classes to represent a day in different calendar systems, or to switch between different calendars, or to extend the time coverage or precision of VFP's Date data type, or to perform basic calendrical calculations, or to check for calendar events...
  • The calculations are, for the most part, based on Kees Couprie's Calendar Math website, and on Calendar.c, a C++ transcript from the original LISP code used for "Calendrical Calculations" by Nachum Dershowitz and Edward M. Reingold.

Using

  • See UNLICENSE.
  • In a project, include Calendar.prg (the base class) and any other specific classes that an application may require (for instance, gregorian-calendar.prg, hebrew-calendar.prg).
  • To make available a class definition, DO its program (for instance, DO persian-calendar.prg)
  • Create an object, and use it (see DOCUMENTATION for more info).

Contributing

  • Test, use, fork, improve.
  • Review, suggest, and comment.

To-Do

  • More calendars...
  • iCalendar interface...

Talk, talk, talk...