Function: subHijriDays()
@taqwim/core / subHijriDays
subHijriDays(
date,amount,options?):HijriDateObject
Defined in: packages/core/src/lib/subHijriDays.ts:22
Subtract the specified number of days from the given date.
Parameters
Section titled “Parameters”HijriDateObject
The date to be changed
amount
Section titled “amount”number
The amount of days to be substracted.
options?
Section titled “options?”Returns
Section titled “Returns”HijriDateObject
The new date with the days substracted
Example
Section titled “Example”// Add 10 days to 1 Ramadan 1445 ({ hy: 1445, hm: 9, hd: 1 })const result = subHijriDays( { hy: 1445, hm: 9, hd: 1 },, 10)//=> { hy: 1445, hm: 10, hd: 11 }