Skip to content

getCalendar

github-actions[bot] edited this page May 30, 2026 · 1 revision

dayjs-hijri-plus v1.0.1


dayjs-hijri-plus / getCalendar

Function: getCalendar()

getCalendar(name): CalendarEngine

Defined in: node_modules/.pnpm/hijri-core@1.0.0/node_modules/hijri-core/dist/index.d.mts:26

Re-exported registry API from hijri-core. Register, retrieve, or list custom calendar engines without adding hijri-core as a direct dependency.

Parameters

name

string

Returns

CalendarEngine

Example

import { registerCalendar, listCalendars } from 'dayjs-hijri-plus';
registerCalendar('my-cal', myEngine);
listCalendars(); // ['uaq', 'fcna', 'my-cal']

Clone this wiki locally