Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/breck7/scroll
/ formatHour12
Function
formatHour12
external/.d3.js:16503–16505 ·
view source on GitHub ↗
(d, p)
Source
from the content-addressed store, hash-verified
16501
}
16502
16503
function
formatHour12(d, p) {
16504
return
pad(d.getHours() % 12 || 12, p, 2);
16505
}
16506
16507
function
formatDayOfYear(d, p) {
16508
return
pad(1 + timeDay.count(timeYear(d), d), p, 3);
Callers
nothing calls this directly
Calls
1
pad
Function · 0.85
Tested by
no test coverage detected