Skip to content

Releases: joe-crick/calendar-model

Day Structure, Hours, Time

25 Mar 10:14

Choose a tag to compare

Pre-release

Main Features:

  • Update the Day data structure to use props.
  • Add additional convenience methods to Day: Time, WeekOfYear, &c.
  • Make inputs and outputs for Model methods consistent (Input a JS Date, Output a Day).
  • Add support for Hours.
  • Refactoring of some method names.
  • Add Day detection.

Alpha

18 Mar 18:44

Choose a tag to compare

Alpha Pre-release
Pre-release

First release of calendar-model. Main features:

  • Uses the built-in JS Date object, decorated with convenience methods and extra functionality.
  • Independent functions you can use to compose a calendar.
  • Ability to get months, weeks, and days.
  • Convenience methods (e.g., months).
  • Methods to translate number values to week day names or month names.
  • Highly customizable, while providing default implementations. You can provide your own implementation (or a third party implementation) for:
    • Formatting
    • Event lookup
    • Week length
    • Month length
    • Month names
    • Weekday names
    • ISOString conversion