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

```kotlin
public object RemoteTimeDefaults
```

Contains default values and helper methods for displaying time-related text in a remote context.

## Functions

<h2 id="is24hourformat">is24HourFormat</h2>

```kotlin
@Composable
    public fun is24HourFormat(): RemoteBoolean
```

Returns a [RemoteBoolean](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteBoolean) indicating whether the time should be displayed in 24-hour format.
Currently captured at recording time.

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

<h2 id="defaulttimestring-is24hourformat">defaultTimeString</h2>

```kotlin
@Composable
    public fun defaultTimeString(is24HourFormat: RemoteBoolean = is24HourFormat()): RemoteString
```

Creates a [RemoteString](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteString) representing the current time in either 12-hour or 24-hour format.

The 24-hour format is represented as "HH:mm", while the 12-hour format is represented as
"hh:mm AM/PM".

#### Parameters

| | |
| --- | --- |
| is24HourFormat | A [RemoteBoolean](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteBoolean) indicating whether to use 24-hour format. Defaults to the system's current setting at the time of recording. |

#### Returns

| | |
| --- | --- |
|  | A [RemoteString](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteString) that evaluates to the formatted time string. |