function clockTime
clockTime(date: Date): string

Returns the hours and minutes of date, without the day period ("PM") so it fits the narrow space beside a grouped message. Its tooltip shows the full time.

Parameters

date: Date

Return Type

string

Usage

import { clockTime } from "src/utils/chat/time.ts";