MCPcopy
hub / github.com/iamkun/dayjs / calMilliseconds

Method calMilliseconds

src/plugin/duration/index.js:104–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 }
103
104 calMilliseconds() {
105 this.$ms = Object.keys(this.$d).reduce((total, unit) => (
106 total + ((this.$d[unit] || 0) * (unitToMS[unit]))
107 ), 0)
108 }
109
110 parseFromMilliseconds() {
111 let { $ms } = this

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected