---
title: attoseconds
framework: swift
role: symbol
role_heading: Instance Property
path: swift/duration/attoseconds
---

# attoseconds

The number of attoseconds represented by this Duration.

## Declaration

```swift
var attoseconds: Int128 { get }
```

## Discussion

Discussion This property provides direct access to the underlying number of attoseconds that the current Duration represents. let d = Duration.seconds(1) print(d.attoseconds) // 1_000_000_000_000_000_000
