MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / formatDateInUtc

Function formatDateInUtc

console/src/utils/dateFormat.ts:61–66  ·  view source on GitHub ↗
(
  timestampOrDate: number | Date,
  formatString?: string,
)

Source from the content-addressed store, hash-verified

59}
60
61export function formatDateInUtc(
62 timestampOrDate: number | Date,
63 formatString?: string,
64) {
65 return formatInTimeZone(timestampOrDate, "UTC", formatString ?? "yy-dd-MM");
66}
67
68export function formatUtcIso(timestampOrDate: number | Date) {
69 return formatDateInUtc(timestampOrDate, ISO_FORMAT);

Callers 13

GraphTooltipBucketRangeFunction · 0.90
StatusEventToastFunction · 0.90
formatTimestampFunction · 0.90
SpendBreakdownFunction · 0.90
InvoiceTableFunction · 0.90
aggregateByDayFunction · 0.90
summarizeResourceCostsFunction · 0.90
PlanTextFunction · 0.90
UpgradedPlanDetailsFunction · 0.90
extractFormattedDateLongFunction · 0.90
TooltipClusterEventFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected