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

Function time

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

Source from the content-addressed store, hash-verified

4 }
5
6 export function time(input: number): string {
7 const date = new Date(input)
8 return date.toLocaleTimeString(undefined, { timeStyle: "short" })
9 }
10
11 export function datetime(input: number): string {
12 const date = new Date(input)

Callers 2

datetimeFunction · 0.70
todayTimeOrDateTimeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected