@soroooosh/badi_date

1.0.2 • Public • Published

@soroooosh//badi_date

A library to convert Date to Badi date and back.

Install

$ npm install @soroooosh/badi_date

Usage Example

const date1 = BadiDate(day: 1, month: 1, year: 178);
const date2 = BadiDate.fromDate(new Date());

const start = date1.startDateTime;
const end = date1.endDateTime;
const holyDay = date1.holyDay;
const isPeriodOfFast = date2.isPeriodOfFast;
const ayyamIHa = date2.isAyyamIHa;
const nextHolyDay = date2.nextHolyDate;

Known Issues

Tests depends on the local time zone and break in most time zones

Package Sidebar

Install

npm i @soroooosh/badi_date

Weekly Downloads

1

Version

1.0.2

License

BSD-2-Clause

Unpacked Size

40.5 kB

Total Files

13

Last publish

Collaborators

  • soroooosh