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

Method utcOffset

src/index.js:344–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 }
343
344 utcOffset() {
345 // Because a bug at FF24, we're rounding the timezone offset around 15 minutes
346 // https://github.com/moment/moment/pull/1871
347 return -Math.round(this.$d.getTimezoneOffset() / 15) * 15
348 }
349
350 diff(input, units, float) {
351 const unit = Utils.p(units)

Callers 1

diffMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected