Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Tencent/CodeAnalysis
/ formatDate
Function
formatDate
web/packages/tca-analysis/src/utils/index.ts:18–18 ·
view source on GitHub ↗
(time: any, format = 'YYYY-MM-DD')
Source
from the content-addressed store, hash-verified
16
* @param format 格式化参数
17
*/
18
export
const
formatDate = (time: any, format =
'YYYY-MM-DD'
) => Moment(time).format(format);
19
20
/**
21
* 格式化时间,返回时间的年月日,时分秒
Callers
5
constants.ts
File · 0.90
ScanHistory
Function · 0.90
formatChartDate
Function · 0.90
TemplateCard
Function · 0.90
formatDateTime
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected