MCPcopy Create free account
hub / github.com/experdot/pointer / formatTimeOnly

Function formatTimeOnly

src/renderer/src/utils/timeFormatter.ts:53–55  ·  view source on GitHub ↗
(timestamp: number)

Source from the content-addressed store, hash-verified

51 * @returns HH:mm 格式的时间字符串
52 */
53export const formatTimeOnly = (timestamp: number): string => {
54 return dayjs(timestamp).format('HH:mm')
55}
56
57/**
58 * 格式化时间戳为日期格式

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected