# ``Swift/Duration``

## Topics

### Creating a duration

- ``Swift/Duration/init(secondsComponent:attosecondsComponent:)``
- ``Swift/Duration/seconds(_:)-311cx``
- ``Swift/Duration/seconds(_:)-5ifzr``
- ``Swift/Duration/milliseconds(_:)-1w328``
- ``Swift/Duration/milliseconds(_:)-7ledy``
- ``Swift/Duration/microseconds(_:)-1zzcc``
- ``Swift/Duration/microseconds(_:)-2majo``
- ``Swift/Duration/nanoseconds(_:)-(Double)``
- ``Swift/Duration/nanoseconds(_:)-(T)``
- ``Swift/Duration/init(attoseconds:)``

### Accessing a duration's components

- ``Swift/Duration/components``

### Performing calculations on durations

- ``Swift/Duration/*(_:_:)-3d469``
- ``Swift/Duration/*=(_:_:)-52frh``
- ``Swift/Duration//(_:_:)-7fkmh``
- ``Swift/Duration//=(_:_:)-10rgx``
- ``Swift/Duration//=(_:_:)-1qfv3``

### Converting a duration

- ``Swift/Duration/attoseconds``
