Skip to content

Commit ba58bd7

Browse files
Document duration aliases
1 parent 839fc7c commit ba58bd7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

packages/openworkflow/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -208,18 +208,18 @@ The sleep step is memoized after it completes. If the workflow is replayed again
208208

209209
Durations accept a number followed by a unit:
210210

211-
| Unit | Examples |
212-
| ------------ | ---------------- |
213-
| milliseconds | `100ms`, `1.5ms` |
214-
| seconds | `5s`, `0.25s` |
215-
| minutes | `2m`, `1.5m` |
216-
| hours | `1h`, `0.25h` |
217-
| days | `1d`, `0.5d` |
218-
| weeks | `1w`, `2w` |
219-
| months | `1mo`, `2mo` |
220-
| years | `1y`, `2yr` |
221-
222-
For more examples of accepted duration formats, check out the
211+
| Unit | Aliases | Examples |
212+
| ------------ | --------------------- | ---------------- |
213+
| milliseconds | `ms`, `msec`, `msecs` | `100ms`, `1.5ms` |
214+
| seconds | `s`, `sec`, `secs` | `5s`, `0.25s` |
215+
| minutes | `m`, `min`, `mins` | `2m`, `1.5m` |
216+
| hours | `h`, `hr`, `hrs` | `1h`, `0.25h` |
217+
| days | `d`, `day(s)` | `1d`, `0.5d` |
218+
| weeks | `w`, `week(s)` | `1w`, `2w` |
219+
| months | `mo`, `month(s)` | `1mo`, `2mo` |
220+
| years | `y`, `yr`, `yrs` | `1y`, `2yr` |
221+
222+
See more examples of accepted duration formats and aliases in the
223223
[tests](https://github.com/openworkflowdev/openworkflow/blob/main/packages/openworkflow/duration.test.ts).
224224

225225
### Type Safety

0 commit comments

Comments
 (0)