Skip to content

Function: addHijriDays()

@taqwim/core


@taqwim/core / addHijriDays

addHijriDays(date, amount): HijriDateObject

Defined in: packages/core/src/lib/addHijriDays.ts:27

HijriDateObject

The date to be changed

number

The amount of days to be added.

HijriDateObject

The new date with the days added

addHijriDays

Add the specified number of days to the given date.

// Add 10 days to 1 Ramadan 1445 ({ hy: 1445, hm: 9, hd: 1 })
const result = addHijriDays(
{ hy: 1445, hm: 9, hd: 1 },
, 10)
//=> { hy: 1445, hm: 10, hd: 11 }