MCPcopy Create free account
hub / github.com/arctic-cli/interface / datetime

Function datetime

packages/arctic/src/util/locale.ts:11–16  ·  view source on GitHub ↗
(input: number)

Source from the content-addressed store, hash-verified

9 }
10
11 export function datetime(input: number): string {
12 const date = new Date(input)
13 const localTime = time(input)
14 const localDate = date.toLocaleDateString()
15 return `${localTime} · ${localDate}`
16 }
17
18 export function todayTimeOrDateTime(input: number): string {
19 const date = new Date(input)

Callers 1

todayTimeOrDateTimeFunction · 0.85

Calls 1

timeFunction · 0.70

Tested by

no test coverage detected