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

Function formatZone

packages/sql/pg/src/PgTypes.ts:642–646  ·  view source on GitHub ↗
(secondsEast: number)

Source from the content-addressed store, hash-verified

640}
641
642const formatZone = (secondsEast: number): string => {
643 const sign = secondsEast < 0 ? "-" : "+"
644 const total = Math.abs(secondsEast)
645 return `${sign}${pad((total / 3600) | 0, 2)}:${twoDigits[((total / 60) | 0) % 60]}`
646}
647
648// -----------------------------------------------------------------------------
649// numeric

Callers 1

PgTypes.tsFile · 0.85

Calls 1

padFunction · 0.70

Tested by

no test coverage detected