Skip to content

Commit

Permalink
add custom range and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jessieeeee committed May 18, 2018
1 parent 0314493 commit 3b6bf28
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,18 @@ dependencies {
### Configuration tool
- DateUtil
```java
DateUtil.setCurState(CUSTOM); //custom range
// if you set custom range, you should set these
DateUtil.setPreMonthNum(3); //previous three months
DateUtil.setNextMonthNum(6); //next six months
DateUtil.setCurState(DYNAMIC); //Dynamic setting range
// if you set dynamic range, you should set these
DateUtil.setPreMonthNum(3); //previous three months
DateUtil.setNextMonthNum(6); //next six months
DateUtil.setCurState(CUSTOM); //custom range
// if you set custom range, you should set these
DateUtil.setStartYear(2019);
DateUtil.setEndYear(2019);
DateUtil.setStartMonth(1);
DateUtil.setEndMonth(2);
// you can set today
DateUtil.setCurDay(2019,1,12);
```
### attrs list
```xml
Expand Down

0 comments on commit 3b6bf28

Please sign in to comment.