---
title: "setTrustedTimeSourceWith(_:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustertimesynchronization/settrustedtimesourcewith(_:completion:)"
---

# setTrustedTimeSourceWith(_:completion:)

Command SetTrustedTimeSource

## Declaration

```swift
func setTrustedTimeSourceWith(_ params: MTRTimeSynchronizationClusterSetTrustedTimeSourceParams, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func setTrustedTimeSourceWith(_ params: MTRTimeSynchronizationClusterSetTrustedTimeSourceParams) async throws
```

## Discussion

Discussion This command is used to set the TrustedTimeSource attribute.
