-
Notifications
You must be signed in to change notification settings - Fork 2
Duration format
LiveInGround edited this page Jan 20, 2026
·
2 revisions
The duration format is used in every command having a <duration> argument, and represents a lapse of time.
The duration format follows the following regex: ^(?:(\\d+)d)?(?:(\\d+)h)?(?:(\\d+)m)?(?:(\\d+)s)?$.
This means that the duration is decomposed into many facultative parts ; the full syntax is <days>d<hours>h<minutes>m<seconds>s, where days, hours, minutes and seconds are positive integers.
-
1d: 1 day -
3d14h: 3 days and 14 hours -
5d4h3m2s: 5 days, 4 hours, 3 minutes and 2 seconds -
4d30m: 4 days and 30 minutes