Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ timeToMs
Function
timeToMs
packages/@internationalized/date/src/queries.ts:121–123 ·
view source on GitHub ↗
(a: AnyTime)
Source
from the content-addressed store, hash-verified
119
}
120
121
function
timeToMs(a: AnyTime): number {
122
return
a.hour * 60 * 60 * 1000 + a.minute * 60 * 1000 + a.second * 1000 + a.millisecond;
123
}
124
125
/**
126
* Returns the number of hours in the given date and time zone.
Callers
1
compareTime
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected