<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SensorKit",
  "identifier" : "/documentation/SensorKit/SRAbsoluteTime",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SensorKit"
    ],
    "preciseIdentifier" : "c:@T@SRAbsoluteTime"
  },
  "title" : "SRAbsoluteTime"
}
-->

# SRAbsoluteTime

A value that describes when the system records the data.

```
struct SRAbsoluteTime
```

## Discussion

This value tracks monotonically increasing device-specific time, unlike <doc://com.apple.documentation/documentation/kernel/1646199-mach_continuous_time>, which keeps tracking across reboots.

Although a fetch can query a [`device`](/documentation/SensorKit/SRFetchRequest/device) other than a phone (such as a paired watch), the framework consistently describes time according to the phone. Any fetch results from a paired watch are in the phone’s version of [`SRAbsoluteTime`](/documentation/SensorKit/SRAbsoluteTime).

## Topics

### Creating an Absolute Time

[`init(CFTimeInterval)`](/documentation/SensorKit/SRAbsoluteTime/init(_:))

Creates an absolute time from a raw value.

[`init(rawValue: CFTimeInterval)`](/documentation/SensorKit/SRAbsoluteTime/init(rawValue:))

Creates an absolute time from a raw value.

### Accessing the Current Absolute Time

[`static func current() -> SRAbsoluteTime`](/documentation/SensorKit/SRAbsoluteTime/current())

Provides the current absolute time.

### Converting Absolute Times

[`func toCFAbsoluteTime() -> CFAbsoluteTime`](/documentation/SensorKit/SRAbsoluteTime/toCFAbsoluteTime())

Converts an absolute time to a core-foundation absolute time.

[`extern SRAbsoluteTime SRAbsoluteTimeFromCFAbsoluteTime(CFAbsoluteTime cf);`](/documentation/SensorKit/SRAbsoluteTimeFromCFAbsoluteTime)

Provides an absolute time equivalent to the argument core-foundation absolute time.

[`extern SRAbsoluteTime SRAbsoluteTimeFromContinuousTime(uint64_t cont);`](/documentation/SensorKit/SRAbsoluteTimeFromContinuousTime)

Provides an absolute time equivalent to the argument continuous time.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)