Skip to content

Commit

Permalink
v1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
shahabyazdi committed Dec 4, 2020
1 parent 69bc846 commit 831f110
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ date.format(); //2019/09/20
date: String , Number(unix time in milliseconds), JavaScript Date or DateObject, //default new Date()
calendar: `gregorian`, `persian` or `arabic`, //default `gregorian`
local: `en`, `fa` or `ar`, //default `en`
format: `String` //default `YYYY/MM/DD`
format: String, //default `YYYY/MM/DD`
ignoreList:Array//If the format contained words that should be ignored
}

```
Expand Down Expand Up @@ -156,7 +157,8 @@ date.format(); //31 Mordad 1399
millisecond: Number, //default 0
calendar: `gregorian`, `persian` or `arabic`, //default `gregorian`
local: `en`, `fa` or `ar`, //default `en`
format: String //default `YYYY/MM/DD`
format: String, //default `YYYY/MM/DD`
ignoreList:Array//If the format contained words that should be ignored
}

```
Expand Down Expand Up @@ -469,6 +471,7 @@ var date = new DateObject(); //2020/10/31
date.set({ calendar: "persian", format: "dddd DD MMMM YYYY" }); //Shanbeh 10 Aban 1399
date.set({ calendar: "gregorian", year: 2020, month: 11, day: 12 }); //Saturday 12 December 2020
date.set(new DateObject().toObject()); //2020/10/31
date.set({ format: "Date:MM/DD/YYYY", ignoreList: ["Date"] }).format(); //Date:10/31/2020
```

## 4-10- toUTC()
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-date-object",
"version": "1.1.4",
"version": "1.1.5",
"description": "JavaScript library for working with Date and Time in different calendars and locals",
"main": "./dist/index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -49,7 +49,7 @@
"babel-core": "^6.26.3",
"babel-loader": "^8.1.0",
"babel-preset-env": "^1.7.0",
"date-object": "^1.1.4",
"date-object": "^1.1.5",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
Expand Down

0 comments on commit 831f110

Please sign in to comment.