Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/formatjs/formatjs
/ mod
Function
mod
packages/ecma262-abstract/DateOperations.ts:3–5 ·
view source on GitHub ↗
(x: number, y: number)
Source
from the content-addressed store, hash-verified
1
const
MS_PER_DAY = 86400000
2
3
function
mod(x: number, y: number): number {
4
return
x - Math.floor(x / y) * y
5
}
6
7
export
function
Day(t: number): number {
8
return
Math.floor(t / MS_PER_DAY)
Callers
5
WeekDay
Function · 0.85
HourFromTime
Function · 0.85
MinFromTime
Function · 0.85
SecFromTime
Function · 0.85
msFromTime
Function · 0.85
Calls
1
floor
Method · 0.80
Tested by
no test coverage detected