Timestamp
fun Timestamp(date: Date?, modifier: Modifier = Modifier, formatter: DateFormatter = ChatTheme.dateFormatter, formatType: DateFormatType = DATE)
Represents a timestamp in the app, that's used primarily for channels and messages.
Parameters
date
The date to show in the timestamp.
modifier
Modifier for styling.
formatter
The formatter that's used to format the date to a String.
formatType
The type of formatting to provide - either a timestamp or a full date. We format the information using DATE by default, as it's the most common behavior.