MCPcopy Index your code
hub / github.com/plotly/plotly.js / isWorldCalendar

Function isWorldCalendar

src/lib/dates.js:28–34  ·  view source on GitHub ↗
(calendar)

Source from the content-addressed store, hash-verified

26var YFIRST = new Date().getFullYear() - 70;
27
28function isWorldCalendar(calendar) {
29 return (
30 calendar &&
31 Registry.componentsRegistry.calendars &&
32 typeof calendar === 'string' && calendar !== 'gregorian'
33 );
34}
35
36/*
37 * dateTick0: get the canonical tick for this calendar

Callers 3

_dateTick0Function · 0.85
dates.jsFile · 0.85
modDateFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…