<div class='sourceset sourceset-android'>Android</div>

```kotlin
public object TimeTextDefaults
```

Contains the default values used by [TimeText](/jetpack-compose/androidx.wear.compose/compose-material3/components/TimeText).

## Functions

<h2 id="timeformat">timeFormat</h2>

```kotlin
@Composable
public fun timeFormat(): String
```

Retrieves default timeFormat for the device. Depending on settings, it can be either 12h or
24h format.

<hr class="docs-overload-divider">

<h2 id="timetextstyle-background-color-fontsize">timeTextStyle</h2>

```kotlin
@Composable
public fun timeTextStyle(
    background: Color = Color.Unspecified,
    color: Color = MaterialTheme.colorScheme.onBackground.setLuminance(80f),
    fontSize: TextUnit = TextUnit.Unspecified,
): CurvedTextStyle
```

Creates a [CurvedTextStyle](/jetpack-compose/androidx.wear.compose/compose-foundation/classes/CurvedTextStyle) with default parameters used for showing time. By default a copy
of MaterialTheme.typography.arcMedium style is created.

#### Parameters

| | |
| --- | --- |
| background | The background color. |
| color | The main color. |
| fontSize | The font size. |

<hr class="docs-overload-divider">

<h2 id="remembertimesource-timeformat">rememberTimeSource</h2>

```kotlin
@Composable
public fun rememberTimeSource(timeFormat: String): TimeSource
```

Creates a default implementation of [TimeSource](/jetpack-compose/androidx.wear.compose/compose-material3/interfaces/TimeSource) and remembers it. Once the system time
changes, it triggers an update of the [TimeSource.currentTime](/jetpack-compose/androidx.wear.compose/compose-material3/interfaces/TimeSource) which is formatted using
[timeFormat](#timeformat) param.

`DefaultTimeSource` for Android uses `android.text.format.DateFormat` [timeFormat](#timeformat) should
follow the standard
[Date and Time patterns](https://developer.android.com/reference/java/text/SimpleDateFormat#date-and-time-patterns)
Examples: "h:mm a" - 12:08 PM "yyyy.MM.dd HH:mm:ss" - 2021.11.01 14:08:56 More examples can
be found [here](https://developer.android.com/reference/java/text/SimpleDateFormat#examples).

#### Parameters

| | |
| --- | --- |
| timeFormat | Date and time string pattern. |

```kotlin
@Composable public fun backgroundColor(): Color
```

The recommended background color to use when displaying curved text so it is visible on top
of other content.