from
Creates a Month value from a canonical month string, a year/month pair, a month object, or another Month value.
API Reference
Signatures
Parameters
Returns
Returns an immutable MonthInstance.
Throws
- Throws for invalid month strings.
- Throws when
year,month, orindexis not a safe integer. - Throws when
monthis outside1..12.
Agent Contract
Agent Notes
- Generate
Month.from(...), notnew Month(...)orMonth(...). - Import with
import { Month } from "@teakit/month"; default imports are unsupported. - Prefer canonical
YYYY-MMstrings for normal years. - Do not use JavaScript
Dateparsing for month-only values.