MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / formatCents

Function formatCents

apps/web/src/lib/utils.ts:65–70  ·  view source on GitHub ↗
(amount: number, currency: string = 'USD')

Source from the content-addressed store, hash-verified

63 const date = toValidDate(dateString);
64 if (!date) return '—';
65 const formatOptions: Intl.DateTimeFormatOptions = {
66 year: 'numeric',
67 month: 'short',
68 day: 'numeric',
69 };
70 if (isDateOnlyString(dateString)) {
71 formatOptions.timeZone = 'UTC';
72 }
73 return date.toLocaleDateString('en-US', formatOptions);

Callers 8

AutoTopUpToggleFunction · 0.90
BillingHistoryTableFunction · 0.90
InvoicesPageClientFunction · 0.90
formatAmountFunction · 0.90
UserAdminInvoicesFunction · 0.90
formatAmountFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected