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

# setUTCTimeWith(_:completion:)

Command SetUTCTime

## Declaration

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

```swift
func setUTCTimeWith(_ params: MTRTimeSynchronizationClusterSetUTCTimeParams) async throws
```

## Discussion

Discussion This command is used to set the UTC time of the node.
