# getPakistanHolidays

Source: https://pakdatakit.dev/api/typescript/holidays/functions/getpakistanholidays/

```ts
function getPakistanHolidays(year, options?): Holiday[];
```

Defined in: [holidays.ts:237](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/holidays.ts#L237)

Lists Pakistan's federal public holidays for a year, sorted by date.

Islamic holidays use the dates actually observed after moon sighting
(2020 onwards, from Cabinet Division and SBP notifications). For years not
yet in the dataset they are estimated from the tabular Hijri calendar and
marked `estimated: true`; pass `announced` to use official dates instead.

Optional holidays (e.g. Shab-e-Barat, Easter, Youm-e-Ali) are not included.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `year` | `number` | Gregorian year |
| `options?` | [`HolidayOptions`](https://pakdatakit.dev/api/typescript/holidays/interfaces/holidayoptions/) | Christian holidays, announced dates and estimate offset |

## Returns

[`Holiday`](https://pakdatakit.dev/api/typescript/holidays/interfaces/holiday/)[]

Holidays in date order

## Example

```ts
getPakistanHolidays(2025).find((h) => h.id === 'eid-ul-fitr');
// { id: 'eid-ul-fitr', name: 'Eid ul Fitr', date: '2025-03-31', type: 'religious', estimated: false, ... }
```
