MCPcopy Create free account
hub / github.com/experdot/pointer / pad

Function pad

src/renderer/src/services/thirdPartyImportService.ts:29–29  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

27 */
28function formatDateTime(date: Date): string {
29 const pad = (n: number): string => n.toString().padStart(2, '0')
30 return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())} ${pad(date.getHours())}:${pad(date.getMinutes())}`
31}
32

Callers 1

formatDateTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected