Home

Calendrical routines in javascript

A set of basic routines javascript for computations on calendars.

From this site (https://louis-aime.github.io/calendrical-javascript/) you can:

  • launch the demonstrators to the calendrical-javascript routines,
  • read the JSDoc generated documentation.

Link to main GitHub repository

Demonstrator usage

With the first panel, choose a custom calendar, then enter a date in this calendar. If you use the "historic" calendar, you can specify the switching day to Gregorian. With the next panels, specify the display options. You may choose a Unicode built-in calendar. The date projected are displayed in the last panels. The first panel also shows the week figures, with which you can specify a date.

Links to the demonstrators

Comments and proposal

Use this repository's issues.

JSDoc documentation

calendrical-demo.js

Demonstrator for calendar-javascript. To be used with suitable calendrical-demo-**.html file. contents: global variables and animation routines for the html page. Required objects initiated by calendrical-init or equivalent. loadCalendrical: promise that modules are imported. Calendrical: prefix name for imported modules.
Version:
  • M2022-02-22
Author:
  • Louis A. de Fouquières https://github.com/Louis-Aime
License:
  • MIT 2016-2022
Source:

calendrical-init.js

Example of initialiser for calendrical-javascript usage. This asynchronous function initialises the user modules of calendrical-javascript for a web page environment. This is to be customised.
Version:
  • M2021-08-29
Author:
  • Louis A. de Fouquières https://github.com/Louis-Aime
License:
  • MIT 2016-2022
Source:

customcalendarmodel.js

Description of the class structure that defines a calendar suitable for the ExtDate and ExtDateTimeFormat extensions provided in calendrical-javascript package. This file does not contain any JS code, only specifications. Contents may be read from the Global section of the JSDoc generated doclet.
Version:
  • M2022-01-26
Author:
  • Louis A. de Fouquières https://github.com/Louis-Aime
License:
  • MIT 2016-2022
Source: