oc · docs
docs / documentation

@orangecheck/design


@orangecheck/design / asOf

Function: asOf()

function asOf(iso: string | null | undefined): string | null;

Defined in: format/index.ts:65

"as of HH:MM" provenance footnote. Returns null for nullish or unparseable input so callers can render nothing ({x && <span>{x}</span>}) rather than gate on a magic empty string. 24-hour, locale-aware. Pairs with useSpotPrice().fetchedAt to caption a live-rate display.

Parameters

ParameterType
isostring | null | undefined

Returns

string | null