MCPcopy Create free account
hub / github.com/bytebase/dbhub / formatTime

Function formatTime

frontend/src/components/views/RequestView.tsx:12–19  ·  view source on GitHub ↗
(timestamp: string)

Source from the content-addressed store, hash-verified

10import type { DatabaseType } from '../../types/datasource';
11
12function formatTime(timestamp: string): string {
13 const date = new Date(timestamp);
14 return date.toLocaleTimeString(undefined, {
15 hour: '2-digit',
16 minute: '2-digit',
17 second: '2-digit',
18 });
19}
20
21function formatDate(timestamp: string): string {
22 const date = new Date(timestamp);

Callers 1

RequestViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected