MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / getDateFormat

Function getDateFormat

frontend/packages/common/src/hooks/excel.ts:68–71  ·  view source on GitHub ↗
(time: number)

Source from the content-addressed store, hash-verified

66 }
67
68 const getDateFormat = (time: number): string => {
69 const date = new Date(time * 1000)
70 return `${date.getFullYear()}${(date.getMonth() + 1).toString().padStart(2, '0')}${date.getDate().toString().padStart(2, '0')}-${date.getHours().toString().padStart(2, '0')}:${date.getMinutes().toString().padStart(2, '0')}`
71 }
72
73 return { exportExcel }
74}

Callers 1

getFileNameFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected