Skip to the content

Koyomi Calendars暦

Calendar pages as SVG: a day as an icon in 18 original designs, a whole month as a poster or a desk pad, and the page turning from one day to the next.

Koyomi is the Japanese word 暦 for the calendar. About the name

Contents

Reference

/month

import { … } from "@johnmorrisdotca/koyomi-calendars/month";

Exports

NameKindWhat it is
daysInMonthfunctionHow many days a month has: leap years by the Gregorian rule (a year divisible by 4, but not by 100 unless by 400).
MONTH_DESIGN_LABELSconstantEach month design's name for a picker, in English and in Japanese.
MONTH_DESIGNSconstantThe four month designs: a wall poster, a memo board, a spiral-bound wall page and a desk pad.
monthCalendarfunctionA whole month as an SVG: a wall poster, a memo board, a spiral-bound wall page or a desk pad.
MonthCalendarOptionstypeWhat monthCalendar takes: the month, the design and the look of one month page.
MonthDaytypeOne cell of a month grid: a date, its weekday, and whether it belongs to the month.
MonthDesigntypeOne of the names in MONTH_DESIGNS.
monthGridfunctionThe weeks of a month: whole weeks of seven, from the week of the 1st to the week of the last day.
MonthGridtypeThe weeks of a month: whole weeks of seven days.
WeekStarttypeThe first column of a month: "sunday" or "monday".

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/koyomi-calendars 0.3.0.