docs: factorize (#5410)

Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
pull/5412/head
James Elliott 2023-05-08 14:26:12 +10:00 committed by GitHub
parent d77bd901da
commit 41afaa5cc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 27 deletions

View File

@ -36,34 +36,19 @@ While you can use multiple of these blocks in combination, we suggest keeping it
#### Unit Legend #### Unit Legend
##### Short Units The following is a legend for the unit formats available in this syntax. The long form units are only available from
v4.38.0 or newer.
These values have been available for a long time. | Unit | Short Unit | Human Readable Long Unit |
|:------------:|:----------:|:-----------------------------:|
| Unit | Associated Letter | | Years | `y` | `year`, `years` |
|:-------:|:-----------------:| | Months | `M` | `month`, `months` |
| Years | y | | Weeks | `w` | `week`, `weeks` |
| Months | M | | Days | `d` | `day`, `days` |
| Weeks | w | | Hours | `h` | `hour`, `hours` |
| Days | d | | Minutes | `m` | `minute`, `minutes` |
| Hours | h | | Seconds | `s` | `second`, `seconds` |
| Minutes | m | | Milliseconds | `ms` | `millisecond`, `milliseconds` |
| Seconds | s |
##### Long Units
These values are more human readable but have only been available since v4.38.0.
| Unit | Human Readable Long Unit |
|:------------:|:-----------------------------:|
| Years | `year`, `years` |
| Months | `month`, `months` |
| Weeks | `week`, `weeks` |
| Days | `day`, `days` |
| Hours | `hour`, `hours` |
| Minutes | `minute`, `minutes` |
| Seconds | `second`, `seconds` |
| Milliseconds | `millisecond`, `milliseconds` |
#### Examples #### Examples