Compress phrasing a bit in relative readme
This commit is contained in:
parent
8671750e66
commit
7ed65a0af1
1 changed files with 3 additions and 7 deletions
|
@ -473,16 +473,12 @@ Doing this allows you to parse relative time strings of the following formats:
|
||||||
+ "+2 years"
|
+ "+2 years"
|
||||||
|
|
||||||
And doing so allows you to construct slightly more readable comparison calls
|
And doing so allows you to construct slightly more readable comparison calls
|
||||||
for sometimes common comparisons. For example:
|
for sometimes common comparisons. For example, the following two calls are identical:
|
||||||
|
|
||||||
```erlang
|
```erlang
|
||||||
> qdate:between("-15 minutes", Date, "+15 minutes").
|
qdate:between("-15 minutes", Date, "+15 minutes").
|
||||||
```
|
|
||||||
|
|
||||||
Is equivilant to:
|
qdate:between(qdate:add_minutes(-15), Date, qdate:add_minutes(15)).
|
||||||
|
|
||||||
```erlang
|
|
||||||
> qdate:between(qdate:add_minutes(-15), Date, qdate:add_minutes(15)).
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Registering Custom Formats
|
### Registering Custom Formats
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue