MCPcopy Create free account
hub / github.com/Effect-TS/effect / pad

Function pad

packages/sql/pg/src/PgTypes.ts:516–516  ·  view source on GitHub ↗
(value: number, size: number)

Source from the content-addressed store, hash-verified

514// -----------------------------------------------------------------------------
515
516const pad = (value: number, size: number): string => String(value).padStart(size, "0")
517
518/** Civil date from days since 1970-01-01, after Howard Hinnant's algorithm. */
519const civilFromDays = (days: number): { year: number; month: number; day: number } => {

Callers 3

formatDateFunction · 0.70
formatTimeOfDayFunction · 0.70
formatZoneFunction · 0.70

Calls 1

StringFunction · 0.50

Tested by

no test coverage detected