> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mira.lgbt/llms.txt
> Use this file to discover all available pages before exploring further.

# Durations

> Learn how to write durations for time-based arguments.

Durations are written as a number followed by a unit, with no space between them.

## Units

| Unit | Meaning | Example |
| ---- | ------- | ------- |
| `s`  | Seconds | `45s`   |
| `m`  | Minutes | `30m`   |
| `h`  | Hours   | `6h`    |
| `d`  | Days    | `2d`    |
| `w`  | Weeks   | `1w`    |
| `mo` | Months  | `3mo`   |
| `y`  | Years   | `1y`    |

<Warning>
  `m` is **minutes**, not months. Months use `mo`, so `6m` is six minutes while `6mo` is six months.
</Warning>

## Combining units

Chain values together to build a more specific duration. Order them from largest unit to smallest.

```a theme={null}
1d12h -> 1 day, 12 hours
2h30m -> 2 hours, 30 minutes
1mo2w -> 1 month, 2 weeks
```

<Tip>
  Never mix in spaces or commas. `1d 12h` and `1d,12h` will both fail to parse.
</Tip>

## Limits

Each command sets its own minimum and maximum. If a duration falls outside the allowed range, the command will tell you the limits instead of running.
