I want to have timestamp of each conversation item...
# ask-ai
b
I want to have timestamp of each conversation item.
t
Thanks for reaching out, Harsh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To include timestamps for each conversation item in LiveKit, you can use the following methods: • The
ChatMessage
structure includes a
timestamp
field. • The
ChatEntry
component can display timestamps and allows you to show or hide them using the
hideTimestamp
prop. Timestamps are displayed in two formats: • Full time style (shown in the title attribute). • Short time style (shown in the UI). Here is an example of how to use the
ChatEntry
component: The timestamp will be displayed, and users can hover over the message to see the full time. Sources: packages/livekit-rtc/src/types.ts | components/livekit/chat/hooks/utils.ts | packages/react/src/components/ChatEntry.tsx