This script generates an ICS file that includes both Nanakshahi calendar dates and Sikh religious holidays. Itdisplays:
- Daily Nanakshahi dates in both English and Punjabi.
- Day of the week in both languages.
- All Gurpurabs and historical events.
- Nanakshahi year (NS - Nanakshahi Samvat).
You can subscribe to this calendar from your Apple calendar by following these steps:
- Open the Calendar app on your Mac.
- Choose File > New Calendar Subscription.
- Enter this URL in the "Calendar URL" field.
- Click Subscribe.
- Customize the settings for the calendar subscription, such as the name and color.
- Click OK.
To add this calendar to Google Calendar:
- Open Google Calendar
- Click the "+" next to "Other calendars"
- Select "From URL"
- Enter this URL
- Click "Add calendar"
This script is built on top of the nanakshahi-js library, which provides the necessary functions to calculate the Gurpurab dates and Nanakshahi calendar conversions.