<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecTrustGetVerifyTime(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecTrustGetVerifyTime"
  },
  "title" : "SecTrustGetVerifyTime(_:)"
}
-->

# SecTrustGetVerifyTime(_:)

Gets the absolute time against which the certificates in a trust management object are verified.

```
func SecTrustGetVerifyTime(_ trust: SecTrust) -> CFAbsoluteTime
```

## Parameters

`trust`

The trust management object whose verification time you want to get. A trust management object includes one or more certificates plus the policy or policies to be used in evaluating trust. Use the [`SecTrustCreateWithCertificates(_:_:_:)`](/documentation/Security/SecTrustCreateWithCertificates(_:_:_:)) function to create a trust management object.

## Return Value

The absolute time at which the certificates should be checked for validity.

## Discussion

This function returns the absolute time returned by:

1. the <doc://com.apple.documentation/documentation/CoreFoundation/CFDateGetAbsoluteTime(_:)> function for the date passed in to the [`SecTrustSetVerifyDate(_:_:)`](/documentation/Security/SecTrustSetVerifyDate(_:_:)) function, if that was called, or
2. the last value returned by the [`SecTrustGetVerifyTime(_:)`](/documentation/Security/SecTrustGetVerifyTime(_:)) function, if it was called before, or
3. the value returned by the <doc://com.apple.documentation/documentation/CoreFoundation/CFAbsoluteTimeGetCurrent()> function if neither [`SecTrustSetVerifyDate(_:_:)`](/documentation/Security/SecTrustSetVerifyDate(_:_:)) nor [`SecTrustGetVerifyTime(_:)`](/documentation/Security/SecTrustGetVerifyTime(_:)) were ever called.

It is safe to call this function concurrently on two or more threads as long as it is not used to get a value from a trust management object that is simultaneously being changed by another function. For example, you can call this function on two threads at the same time, but not if you are simultaneously calling the [`SecTrustSetVerifyDate(_:_:)`](/documentation/Security/SecTrustSetVerifyDate(_:_:)) function for the same trust management object on another thread.

## See Also

[`SecTrustSetVerifyDate(_:_:)`](/documentation/Security/SecTrustSetVerifyDate(_:_:))

Sets the date and time against which the certificates in a trust management object are verified.



---

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)