From a73ce4d94e02a07344f99fc528f3c8a1e8f2710d Mon Sep 17 00:00:00 2001 From: Boulea7 <145515129+Boulea7@users.noreply.github.com> Date: Fri, 4 Dec 2026 00:53:29 +0800 Subject: [PATCH] Clarify when month units are available --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index d752132d..00c31c7b 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,11 @@ These formats can be lowercase (`minutes`), uppercase (`MINUTES`), or capitalize If no unit is passed (`2`), the unit will default to `Milliseconds`. Fractional input values like `0.5m`, `-0.5m`, `.5m`, and `-.5m` are supported. +The month units first shipped in `3.0.0-canary.202508252028`. In `ms@2.1.3`, +month inputs return `undefined`. To try month support in the v3 prerelease, +install `ms@canary`. One month is one twelfth of a 365.25-day year +(2,629,800,000 milliseconds). + ## Installation You can install this package using a package manager like [npm](https://docs.npmjs.com/cli/v11/commands/npm-install), [yarn](https://yarnpkg.com/cli/add), [pnpm](https://pnpm.io/cli/add), [deno](https://docs.deno.com/runtime/reference/cli/add), or [bun](https://bun.com/docs/cli/add).