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

# Duration

> Time duration in ISO 8601 format

A duration scalar representing a length of time.

## Format

* **Input/Output**: ISO 8601 duration format (e.g., `PT1H30M` for 1 hour 30 minutes)

## Common Patterns

| Duration | Meaning |
| - | - |
| `PT30S` | 30 seconds |
| `PT5M` | 5 minutes |
| `PT1H` | 1 hour |
| `PT1H30M` | 1 hour 30 minutes |
| `P1D` | 1 day |

## Examples

```graphql theme={null}
# Query ticket interactions with wait/service times
query {
  ticket(id: "123") {
    interactions {
      waitTime    # Returns Duration
      serviceTime # Returns Duration
    }
  }
}
```

```json theme={null}
// Response
{
  "interactions": [
    {
      "waitTime": "PT12M45S",
      "serviceTime": "PT8M30S"
    }
  ]
}
```

```graphql theme={null}
scalar Duration
```

### Member Of

[`Interaction`](/reference/graphql/objects/interaction)  <mark class="gqlmd-mdx-badge">object</mark>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.