From 9cf5355b64c95b46b3a7593842b02bd90767da76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=9B=BD=E6=B6=9B?= Date: Sun, 6 Nov 2022 22:54:31 +0800 Subject: [PATCH] feat: ver0.8.4 --- README.md | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b5babb..0b24961 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ monthDiff("2022/10/15", "2022/10/05", true); ## API +- **`format(date, format?)`** format date, default: `YYYY-MM-DD HH:mm:ss`. - **`add(date, value, unit?)`** date increase by unit. - **`subtract(date, value, unit?)`** date decrease by unit. - **`startOf(date, unit?, isStartOf?)`** get start date and time. @@ -48,6 +49,8 @@ monthDiff("2022/10/15", "2022/10/05", true); ## changelogs +* **[v0.8.4]** - 2022/11/06 + * add `format` method. * **[v0.7.4]** - 2022/10/23 * add `quarter` and `getSameMonthOfQuarter` methods. * `startOf`、`endOf`、`add`、`subtract` supports quarter function. diff --git a/package.json b/package.json index 33d72cd..0dc0434 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "date-toolkit", - "version": "0.7.4", + "version": "0.8.4", "description": "The package used to learn the date time related calculation algorithm (Not guaranteed to be bug free)", "type": "module", "main": "index.js", @@ -10,6 +10,7 @@ }, "keywords": [ "date", + "date formate", "datetime", "dates-utils", "date-tools",