# TimeSource

# TimeSource

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

<br />

```
interface TimeSource
```

<br />

*** ** * ** ***

An interface which is responsible for retrieving a formatted time.

## Summary

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

## Public properties

### currentTime

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

```
val 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. |