---
title: "position(date:)"
framework: OSLog
role: symbol
role_heading: Instance Method
platforms: [iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+, macOS 10.15+, tvOS 15.0+, visionOS 1.0+, watchOS 8.0+]
path: "oslog/oslogstore/position(date:)"
---

# position(date:)

Returns a position representing the time specified.

## Declaration

```swift
func position(date: Date) -> OSLogPosition
```

## Discussion

Discussion If there are multiple occurrences of the same time, the method returns the earliest occurrence.

## See Also

### Accessing Position

- [position(timeIntervalSinceEnd:)](oslog/oslogstore/position(timeintervalsinceend:).md)
- [position(timeIntervalSinceLatestBoot:)](oslog/oslogstore/position(timeintervalsincelatestboot:).md)
