Android
public object RemoteTimeDefaults
Contains default values and helper methods for displaying time-related text in a remote context.
Functions
is24HourFormat
@Composable
public fun is24HourFormat(): RemoteBoolean
Returns a RemoteBoolean indicating whether the time should be displayed in 24-hour format. Currently captured at recording time.
defaultTimeString
@Composable
public fun defaultTimeString(is24HourFormat: RemoteBoolean = is24HourFormat()): RemoteString
Creates a 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 indicating whether to use 24-hour format. Defaults to the system's current setting at the time of recording. |
Returns
| A RemoteString that evaluates to the formatted time string. |