MCPcopy Create free account
hub / github.com/hashintel/hash / pad

Function pad

apps/hash-api/src/seed-data/supply-chain-dataset-import.ts:119–119  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

117
118export const defaultSupplyChainDatasetVersion = (now = new Date()): string => {
119 const pad = (value: number) => String(value).padStart(2, "0");
120 return `local-${now.getUTCFullYear()}${pad(now.getUTCMonth() + 1)}${pad(
121 now.getUTCDate(),
122 )}-${pad(now.getUTCHours())}${pad(now.getUTCMinutes())}${pad(

Callers 1

Calls 1

StringClass · 0.85

Tested by

no test coverage detected