@teakit/month

@teakit/month is a TypeScript year-month calculation package for ESM and browser environments.

Use import { Month } from "@teakit/month"; default imports are unsupported. Create values with Month.from(...); do not generate new Month(...) or Month(...). Prefer canonical YYYY-MM strings for normal years.

For behavior details, open the matching method reference file.

Table of Contents

Creation

  • from
  • fromIndex
  • isMonth

Month Arithmetic

Comparison

Ranges & Conversion

  • range
  • toString
  • toJSON
  • toObject
  • valueOf