---
title: "duration(to:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/instantprotocol/duration(to:)"
---

# duration(to:)

## Declaration

```swift
func duration(to other: Self) -> Self.Duration
```
