MCPcopy Create free account
hub / github.com/TurtleTrace2026/TurtleTrace / getDateString

Function getDateString

src/services/exportService.ts:293–299  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

291
292// 获取日期字符串(格式:YYYY-MM-DD)
293function getDateString(): string {
294 const now = new Date()
295 const year = now.getFullYear()
296 const month = String(now.getMonth() + 1).padStart(2, '0')
297 const day = String(now.getDate()).padStart(2, '0')
298 return `${year}-${month}-${day}`
299}

Callers 6

exportToCSVFunction · 0.85
exportToJSONFunction · 0.85
exportCompleteDataFunction · 0.85
exportReviewsDataFunction · 0.85
exportReviewsToMarkdownFunction · 0.85
exportEventsDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected