Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/experdot/pointer
/ formatAbsoluteDate
Function
formatAbsoluteDate
src/renderer/src/utils/dateTime.ts:41–43 ·
view source on GitHub ↗
(date: Dayjs, now: Dayjs)
Source
from the content-addressed store, hash-verified
39
}
40
41
function
formatAbsoluteDate(date: Dayjs, now: Dayjs): string {
42
return
date.isSame(now,
'year'
) ? date.format(
'MM月DD日'
) : date.format(
'YYYY年MM月DD日'
)
43
}
Callers
1
formatSemanticDateTime
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected