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

```kotlin
public object TimeTextDefaults
```

Contains the default values used by [TimeText](/jetpack-compose/androidx.wear.compose/compose-material/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 = Color.Unspecified,
    fontSize: TextUnit = TextUnit.Unspecified,
): TextStyle
```

Creates a [TextStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextStyle) with default parameters used for showing time on square screens. By
default a copy of MaterialTheme.typography.caption1 style is created

#### Parameters

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

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

<h2 id="textseparator-modifier-textstyle-contentpadding">TextSeparator</h2>

```kotlin
@Composable
public fun TextSeparator(
    modifier: Modifier = Modifier,
    textStyle: TextStyle = timeTextStyle(),
    contentPadding: PaddingValues = PaddingValues(horizontal = 4.dp),
)
```

A default implementation of Separator shown between start/end content and the time on square
screens

#### Parameters

| | |
| --- | --- |
| modifier | A default modifier for the separator |
| textStyle | A [TextStyle](/jetpack-compose/androidx.compose.ui/ui-text/classes/TextStyle) for the separator |
| contentPadding | The spacing values between the container and the separator |

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

<h2 id="curvedtextseparator-curvedtextstyle-contentarcpadding">CurvedTextSeparator</h2>

```kotlin
public fun CurvedScope.CurvedTextSeparator(
        curvedTextStyle: CurvedTextStyle? = null,
        contentArcPadding: ArcPaddingValues = ArcPaddingValues(angular = 4.dp),
    )
```

A default implementation of Separator shown between start/end content and the time on round
screens

#### Parameters

| | |
| --- | --- |
| curvedTextStyle | A [CurvedTextStyle](/jetpack-compose/androidx.wear.compose/compose-foundation/classes/CurvedTextStyle) for the separator |
| contentArcPadding | A [ArcPaddingValues](/jetpack-compose/androidx.wear.compose/compose-foundation/interfaces/ArcPaddingValues) for the separator text |

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

<h2 id="timesource-timeformat">timeSource</h2>

```kotlin
public fun timeSource(timeFormat: String): TimeSource
```

A default implementation of [TimeSource](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/TimeSource). Once the system time changes, it triggers an update
of the [TimeSource.currentTime](/jetpack-compose/androidx.wear.compose/compose-material/interfaces/TimeSource) which is formatted before that using [timeFormat](#timeformat) param.

Android implementation: `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)

Desktop implementation: TBD

#### Parameters

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