Time.ir Calendar
v0.2.2Read-only Time.ir Iranian calendar: Jalali/Gregorian/Hijri dates, holidays, events, prayer times.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ti_today Today
Get today's date in the Jalali, Gregorian and Hijri calendars with the Tehran time, weekday, zodiac sign and today's events. Use first for "today", "now" or the date/time in Iran.
ti_convert_date Convert date
Convert a date between the Jalali (Solar Hijri), Gregorian and Hijri (lunar) calendars, using time.ir's own converter. Hijri is Iran's official date (may differ by a day from Saudi Arabia's).
| Parameter | Type | Description |
|---|---|---|
date * | string | YYYY-MM-DD, e.g. 1405-08-10 or 2026-11-01. |
calendar | string | Calendar of the date(s). |
ti_month Month calendar
Show one Jalali month: its Gregorian and Hijri month spans, weekday of day 1, holidays and every event of the month. Use for "holidays this month". For one day with descriptions use ti_events.
| Parameter | Type | Description |
|---|---|---|
month | Jalali month 1-12. Omit for current. | |
year | Jalali year, e.g. 1405. Omit for current. |
ti_events Events of a day
List the occasions (Persian: monasebat) and official holidays of one day, with a short description when time.ir has one. Use for "is 2026-12-25 a holiday in Iran". Each event has `calendar` (where the occasion belongs) and `holiday`. Friday alone is not a holiday.
| Parameter | Type | Description |
|---|---|---|
calendar | string | Calendar of the date(s). |
date | YYYY-MM-DD in `calendar`, e.g. 1405-08-10. Omit for today. |
ti_holidays Holidays of a year
List all official holidays (تعطیلات رسمی) of a Jalali year with Gregorian and Hijri dates and weekdays. Fridays are listed only when also an occasion holiday. For "the next holiday" use ti_upcoming_holidays.
| Parameter | Type | Description |
|---|---|---|
year | Jalali year, e.g. 1405. Omit for current. |
ti_upcoming_holidays Upcoming holidays
List the next official holidays in Iran starting today (or from_date), with days until each. Use for "when is the next holiday". Fridays alone are not listed.
| Parameter | Type | Description |
|---|---|---|
calendar | string | Calendar of the date(s). |
count | integer | Holidays to return. |
from_date | YYYY-MM-DD in `calendar`, e.g. 1405-08-10. Omit for today. |
ti_cities Cities
List Iran's provinces, or the cities of one province, with the ids ti_prayer_times takes. No arguments: 31 provinces with capital city ids. With `province`: its cities with lat/lng.
| Parameter | Type | Description |
|---|---|---|
province | Province name or id, e.g. 'فارس'. Omit to list the 31 provinces. | |
query | Filter cities by name. |
ti_prayer_times Prayer times
Get the Islamic prayer times (اوقات شرعی) for an Iranian city and day: fajr, sunrise, noon, sunset, maghrib and Islamic midnight. Iran local time, 24 h. Today only: another `date` returns an error. Non-capital cities need `province`.
| Parameter | Type | Description |
|---|---|---|
city * | string | City name (Persian), e.g. 'شیراز', or city id. |
calendar | string | Calendar of the date(s). |
date | YYYY-MM-DD in `calendar`, e.g. 1405-08-10. Omit for today. | |
province | Province name or id; needed unless `city` is a provincial capital. |
ti_qibla Qibla direction
Get the qibla direction (bearing to the Kaaba in Mecca, degrees clockwise from true north) and distance for an Iranian city. Computed from the city's coordinates (great circle), not by Time.ir. Bearing is from true north.
| Parameter | Type | Description |
|---|---|---|
city * | string | City name (Persian), e.g. 'شیراز', or city id (then `province` is needed). |
province | Province name or id; needed unless `city` is a provincial capital. |
ti_on_this_day On this day in history
List today's historical events, birthdays and deaths of notable people, as Time.ir's "today" page shows them. Today only. Each item's `date` is as Time.ir prints it (Gregorian with year for history, Jalali day for national occasions).
| Parameter | Type | Description |
|---|---|---|
kind | Keep only this kind. |
ti_search_events Search occasions
Search all occasions (monasebat) of a Jalali year by keyword and return each match with its dates. Use for "when is Teacher's Day". Title matches first, then description matches, each in date order.
| Parameter | Type | Description |
|---|---|---|
query * | string | Text in occasion names or descriptions, e.g. 'معلم'. |
calendar | Only this calendar's occasions (jalali national, gregorian world days, hijri religious). | |
holiday_only | boolean | Only official holidays. |
limit | integer | Max results. |
year | Jalali year. Omit for current. |
ti_date_difference Date difference
Count the days between two dates and give the span as Jalali years, months and days (age calculator). Omit to_date for today. Both dates use `calendar`. If to_date is earlier, `direction` is "before".
| Parameter | Type | Description |
|---|---|---|
from_date * | string | Start date YYYY-MM-DD, e.g. birth date 1380-05-17. |
calendar | string | Calendar of the date(s). |
to_date | YYYY-MM-DD in `calendar`, e.g. 1405-08-10. Omit for today. |
ti_long_weekends Long weekends
Find runs of consecutive days off in a Jalali year: official holidays joined with Fridays (optionally Thursdays). Use for "long weekends in 1405". Bridge days are not counted; runs are cut at the year boundary.
| Parameter | Type | Description |
|---|---|---|
min_days | integer | Shortest run to list. |
thursday_off | boolean | Count Thursdays as days off. |
year | Jalali year. Omit for current. |