Skip to content

Commit

Permalink
feat: ver0.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
沈国涛 committed Nov 6, 2022
1 parent 22a8b2a commit 9cf5355
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -10,6 +10,7 @@
},
"keywords": [
"date",
"date formate",
"datetime",
"dates-utils",
"date-tools",
Expand Down

0 comments on commit 9cf5355

Please sign in to comment.