# TimeSource

# TimeSource

Artifact:[androidx.wear.compose:compose-material3](https://developer.android.com/jetpack/androidx/releases/wear-compose)  
[View Source](https://cs.android.com/search?q=file:androidx/wear/compose/material3/TimeText.kt+class:androidx.wear.compose.material3.TimeSource)  
Added in[1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)

<br />

```
interface TimeSource
```

<br />

*** ** * ** ***

## Summary

|                               ### Public functions                                |
|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | `@`[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable) [currentTime](https://developer.android.com/reference/kotlin/androidx/wear/compose/material3/TimeSource#currentTime())`()` A method responsible for returning updated time string. |

## Public functions

### currentTime

Added in[1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)  

```
@Composable
fun currentTime(): String
```

A method responsible for returning updated time string.  

|                                      Returns                                      |
|-----------------------------------------------------------------------------------|------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | Formatted time string. |