Skip to content

Commit f0db61b

Browse files
committed
Update README to version 0.3
1 parent bf57ceb commit f0db61b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,11 @@ dateMathBuilder.nowPattern("now");
5252
```java
5353
// creates a new DateMathParser instance and returns it
5454
dateMathBuilder.build();
55+
```
56+
## Formatter
57+
### DateMathFormatter
58+
#### static Collection\<String\> getAllPatternsBetween(ZonedDateTime start, ZonedDateTime end, String pattern)
59+
```java
60+
// gets all the patterns of datetimes between start and end
61+
DateMathFormatter.getAllPatternsBetween(ZonedDateTime.now().minus(7, ChronoUnit.YEARS), ZonedDateTime.now(), "yyyy-MM-dd HH");
5562
```

0 commit comments

Comments
 (0)