---
title: timestamp
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipress/timestamp
---

# timestamp

The time when the press occurred or when it was last mutated.

## Declaration

```swift
var timestamp: TimeInterval { get }
```

## Discussion

Discussion The value of this property is the time, in seconds, from system startup to the time in which the touch either originated or was last changed. You can store and compare the initial value of this attribute to subsequent timestamp values of a UIPress instance to determine the duration of the press and, if it’s being swiped, the speed of movement. For a definition of the time-since-boot value, see the description of the ProcessInfo class’s systemUptime method.

## See Also

### Getting press attributes

- [key](uikit/uipress/key.md)
- [type](uikit/uipress/type.md)
- [phase](uikit/uipress/phase-swift.property.md)
