MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / localeErasConvertYear

Function localeErasConvertYear

tests/test_code/js/moment/moment.js:4393–4400  ·  view source on GitHub ↗
(era, year)

Source from the content-addressed store, hash-verified

4391 }
4392
4393 function localeErasConvertYear(era, year) {
4394 var dir = era.since <= era.until ? +1 : -1;
4395 if (year === undefined) {
4396 return hooks(era.since).year();
4397 } else {
4398 return hooks(era.since).year() + (year - era.offset) * dir;
4399 }
4400 }
4401
4402 function getEraName() {
4403 var i,

Callers

nothing calls this directly

Calls 1

hooksFunction · 0.85

Tested by

no test coverage detected