شعار Jalali Calendar

Jalali Calendar

المجتمع
MiladJoodi
jalali-calendar

تعامل مع التواريخ والأوقات للمستخدمين في إيران: التقويم الجلالي / الهجري الشمسي (تقویم شمسی، هجری خورشیدی)، والأسابيع التي يبدأ ترتيبها بالسبت، وتوقيت طهران (Asia/Tehran، UTC+03:30، بلا توقيت صيفي)، وأسماء الشهور وأيام الأسبوع بالفارسية، والتنسيق والتخزين والتحويل ونطاقات التواريخ والتقارير وحساب الأعمار والعطلات. استخدم هذه المهارة كلما ظهر تاريخ أو وقت أو تقويم أو منتقي تاريخ أو موعد نهائي أو حجز أو فترة تقرير أو عمر أو عطلة في منتج فارسي (فارسي)، أو عندما يقول المستخدم تاریخ شمسی، تقویم فارسی، jalali، شنبه، نوروز.

نظرة عامة

الناشرMiladJoodi
المستودعskills
اسم المهارةjalali-calendar
النجوم
24
التفريعات
1
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها MiladJoodi على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Jalali Calendar في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/MiladJoodi/skills/tree/main/skills/jalali-calendar
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiladJoodi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/jalali-calendar .claude/skills/jalali-calendar
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Jalali Calendar في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Jalali Calendar تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Jalali Calendar بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Jalali Calendar (تقویم شمسی)

Iranian users generally think about dates in the Solar Hijri (Jalali) calendar. Dates appear in invoices, contracts, profiles, reports, bookings, deadlines and everyday product interfaces.

A Persian product should distinguish between:

  • how dates are stored
  • how dates are transported
  • how dates are calculated
  • how dates are displayed

Do not treat a Jalali date as merely a different string format for a Gregorian date.

1. The calendar in one table

MonthNameDays
1فروردین31
2اردیبهشت31
3خرداد31
4تیر31
5مرداد31
6شهریور31
7مهر30
8آبان30
9آذر30
10دی30
11بهمن30
12اسفند29, or 30 in a leap year
  • The Jalali year starts at Nowruz (نوروز).
  • The first day of the year falls around the March equinox and can be March 20 or March 21.
  • Never assume that the Jalali year always begins on the same Gregorian date.
  • Leap years do not follow a simple % 4 rule.
  • Use a tested Jalali/Gregorian conversion algorithm for leap-year handling.
  • Do not implement leap-year logic from memory.

As a sanity check:

  • 20 September 2026 = ۲۹ شهریور ۱۴۰۵
  • 21 March 2026 = ۱ فروردین ۱۴۰۵

2. Week and weekend

  • The week starts on Saturday (شنبه).

  • Calendar grids, date pickers, weekly reports and "this week" ranges should follow the Saturday-first convention.

  • Weekday order:

    شنبه، یکشنبه، دوشنبه، سه‌شنبه، چهارشنبه، پنجشنبه، جمعه

  • Friday is the standard weekend day.

  • Working-day rules can vary by organization. Do not automatically assume Thursday is always a working day or always a holiday.

  • When calculating business days, make the working-week configuration explicit when the product has organization-specific rules.

For Persian products, do not silently inherit a Monday-first calendar from an English-oriented date picker.

3. Time zone

Iran uses the Asia/Tehran timezone.

  • Timezone: Asia/Tehran
  • Standard offset: UTC+03:30
  • Daylight saving time is no longer observed.
  • Do not apply a seasonal +04:30 offset.
  • Do not manually add or subtract 3.5 hours from timestamps.
  • Always perform timezone conversion through the IANA timezone.

Example:

ts
new Intl.DateTimeFormat("fa-IR-u-ca-persian", {
  dateStyle: "long",
  timeZone: "Asia/Tehran",
}).format(date);

The half-hour offset is important. Avoid code that assumes every timezone has a whole-hour offset.

4. Storage and transport

Storage and presentation should remain separate.

Database

Prefer storing an instant in a standard machine-readable representation:

  • UTC ISO 8601
  • Unix timestamp
  • native database timestamp types

Do not use a Jalali display string as the primary source of truth for an instant.

API

Keep timestamps in the format required by the API, normally ISO 8601 or Unix time.

Convert them to Jalali when presenting them to Persian users.

Jalali form values

If a Jalali date must be sent as a form or query value, use an explicit, predictable format such as:

text
1405-06-29

Keep Latin digits in machine-readable values unless the API explicitly requires another representation.

Validate the value by parsing and converting it rather than validating it as a simple string pattern only.

User-entered dates

If the user enters:

text
۱۴۰۵/۰۶/۲۹

or:

text
1405/06/29

normalize the input before parsing.

Do not reject a valid Persian-digit date simply because it is not ASCII.

For birth dates, contract dates and other important dates, convert the input to a reliable internal representation and preserve the original Jalali value only when there is a legitimate display or audit requirement.

5. Display formats

Use the format that matches the context.

ContextFormatExample
Short numericyyyy/mm/dd۱۴۰۵/۰۶/۲۹
Longday, month name, year۲۹ شهریور ۱۴۰۵
With weekdayweekday firstیکشنبه ۲۹ شهریور ۱۴۰۵
Time24-hour۱۴:۳۰
Date and timedate + time۲۹ شهریور ۱۴۰۵، ساعت ۱۴:۳۰
RelativePersian words۲ ساعت پیش
Relative futurePersian words۳ روز دیگر
Rangeاز … تا …از ۱ مهر تا ۱۵ مهر ۱۴۰۵
Monthmonth + yearمهر ۱۴۰۵

Rules:

  • Use Persian digits where the user reads the date.
  • Use ٬ as the Persian thousands separator when needed.
  • Use ٫ as the Persian decimal separator.
  • Use ٪ for percentages.
  • Month names must use the Persian names from the calendar.
  • Do not transliterate month names.
  • Do not show English month names in a Persian-only interface.
  • Keep machine-readable values in their appropriate technical format.

Avoid displaying:

text
Sep 20, 2026

to a Persian user unless the product is intentionally bilingual or the Gregorian date is specifically relevant.

6. Using Intl correctly

Intl.DateTimeFormat can format Persian calendar dates:

ts
new Intl.DateTimeFormat("fa-IR-u-ca-persian", {
  dateStyle: "long",
  timeZone: "Asia/Tehran",
}).format(date);

For Latin digits when needed:

ts
new Intl.DateTimeFormat("fa-IR-u-ca-persian-nu-latn", {
  dateStyle: "short",
  timeZone: "Asia/Tehran",
}).format(date);

However, Intl formatting should not be confused with calendar arithmetic.

For operations such as:

  • extracting Jalali year/month/day
  • validating a Jalali date
  • calculating leap years
  • adding or subtracting Jalali months
  • generating a month grid
  • calculating Jalali date ranges
  • comparing Jalali dates
  • calculating age

use a tested calendar conversion implementation.

Do not build calendar arithmetic by manipulating formatted strings.

7. Date pickers

A Jalali date picker should behave like a Persian calendar, not simply display Persian month names on top of a Gregorian grid.

  • Week starts on Saturday.
  • The month header uses Persian month names.
  • The current Jalali year is shown.
  • Previous and next navigation follow RTL.
  • Previous-month navigation points right.
  • Next-month navigation points left.
  • Today, selected, disabled and unavailable states must remain visually distinguishable without relying on color alone.
  • Keyboard navigation must remain functional.
  • Focus state must remain visible.
  • The selected date should have an accessible textual representation.
  • Min/max dates must be calculated from actual dates rather than UI strings.
  • Disabled dates should come from data when possible.

Example header:

text
‹    مهر ۱۴۰۵    ›

The visual direction should be RTL even if the underlying date library uses Gregorian dates internally.

8. Date ranges

Range selection must work with actual date values rather than comparing formatted Jalali strings.

Use:

  • از تاریخ
  • تا تاریخ

for Persian range controls.

Common presets can include:

  • امروز
  • ۷ روز گذشته
  • ۳۰ روز گذشته
  • این ماه
  • ماه گذشته
  • این سال

Presets must be calculated using the correct calendar and timezone.

For example, "this month" in a Jalali report should refer to the current Jalali month, not the current Gregorian month.

9. Reports and charts

When a Persian product reports dates by month, use Jalali months when the business context is based on the Iranian calendar.

Examples:

text
فروردین
اردیبهشت
خرداد

For yearly reports:

text
۱۴۰۲
۱۴۰۳
۱۴۰۵
۱۴۰۵

For quarterly reports, use:

  • بهار
  • تابستان
  • پاییز
  • زمستان

Do not group a Persian business report by Gregorian months simply because the database stores Gregorian timestamps.

When a chart crosses a year boundary, include the year with the month to avoid ambiguity:

text
اسفند ۱۴۰۵
فروردین ۱۴۰۵

10. Fiscal periods

Do not assume every organization uses the same fiscal calendar.

For products operating in an Iranian business context, the Jalali year may be used as the reporting or fiscal year, but this should match the product's actual business rules.

If the fiscal year is Jalali:

text
۱ فروردین ۱۴۰۵ تا ۲۹/۳۰ اسفند ۱۴۰۵

Do not infer fiscal-year boundaries from the calendar alone when the product has custom accounting rules.

11. Age and durations

Age should be calculated from reliable date values, not by simply subtracting Jalali year numbers.

Example output:

text
۲۴ سال
۲۴ سال و ۳ ماه
۲۴ سال و ۳ ماه و ۱۰ روز

For durations, calculate using actual timestamps or calendar dates first, then format the result naturally in Persian.

Relative dates should also be localized:

text
امروز
دیروز
فردا
۲ ساعت پیش
۳ روز دیگر

Do not calculate relative time using only the displayed Jalali date string.

12. Holidays

Do not hard-code a complete Iranian holiday list from memory.

Iranian holidays include both:

  • fixed Solar Hijri dates
  • holidays based on the Islamic lunar calendar

Therefore, holiday dates can change from year to year.

Holiday data should come from a maintained and trusted calendar source or an API.

Store or map holidays to actual dates and keep their names available for:

  • calendar tooltips
  • disabled states
  • accessibility labels
  • reports
  • business-day calculations

Example:

ts
{
  date: "2026-03-21",
  name: "نوروز"
}

Do not assume that every holiday can be calculated from a Jalali month/day alone.

13. Business days

When a product needs business-day calculations:

  • Define the working days explicitly.
  • Treat Friday as the default weekend day for Iranian contexts.
  • Do not universally mark Thursday as a non-working day.
  • Allow organizations to configure their own working calendar.
  • Consider holidays separately from weekends.

For example:

text
workingDays = [شنبه، یکشنبه، دوشنبه، سه‌شنبه، چهارشنبه، پنجشنبه]

may be appropriate for one organization, while another may use a Saturday–Wednesday schedule.

14. Input and validation

Date inputs should accept common Persian user behavior.

Support when appropriate:

text
۱۴۰۵/۰۶/۲۹
1405/06/29
۱۴۰۵-۰۶-۲۹
1405-06-29

Normalize:

  • Persian digits
  • Arabic-Indic digits
  • separators
  • surrounding whitespace

before validation.

After normalization:

  1. Parse the Jalali date.
  2. Validate the year, month and day.
  3. Convert to a reliable internal representation.
  4. Optionally convert back to Jalali to verify the conversion.

Do not validate dates with a regular expression alone.

15. Localization

Use Persian names consistently.

Months

text
فروردین
اردیبهشت
خرداد
تیر
مرداد
شهریور
مهر
آبان
آذر
دی
بهمن
اسفند

Weekdays

text
شنبه
یکشنبه
دوشنبه
سه‌شنبه
چهارشنبه
پنجشنبه
جمعه

Do not mix English and Persian names in the same Persian-only calendar.

16. Common mistakes

Avoid:

  • Monday-first calendars
  • Gregorian month names in Persian UI
  • applying daylight saving time to Tehran
  • manually adding 3.5 hours
  • implementing leap years with % 4
  • storing formatted Jalali strings as timestamps
  • calculating age from displayed year numbers
  • comparing dates lexically when formats differ
  • hard-coding holiday lists
  • using Gregorian month boundaries for Jalali reports
  • assuming Thursday is always a holiday
  • relying on Intl alone for calendar arithmetic
  • showing Latin digits everywhere in user-facing dates
  • reversing an entire component just to fix one RTL navigation icon

17. Checklist

Before returning date-related code:

  1. User-facing dates use Jalali where appropriate.
  2. Week starts on Saturday.
  3. Asia/Tehran is used for Iranian local time when required.
  4. No manual timezone offset calculations.
  5. No daylight-saving adjustment is applied to Tehran.
  6. Persian digits and Persian month names are used in visible dates.
  7. Leap years use a tested algorithm.
  8. Gregorian/UTC values remain the internal source of truth where appropriate.
  9. Jalali input is normalized and validated correctly.
  10. Date pickers use a Saturday-first grid.
  11. RTL calendar navigation points in the correct direction.
  12. Jalali month boundaries are used for Persian reports.
  13. Age is calculated from actual date values.
  14. Holidays come from maintained data.
  15. Business-day rules are explicit rather than assumed.
  16. Relative dates are natural Persian.
  17. No English Gregorian formatting appears in Persian-only UI.
  18. Date ranges and presets use the correct calendar and timezone.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Jalali Calendar؟

تعامل مع التواريخ والأوقات للمستخدمين في إيران: التقويم الجلالي / الهجري الشمسي (تقویم شمسی، هجری خورشیدی)، والأسابيع التي يبدأ ترتيبها بالسبت، وتوقيت طهران (Asia/Tehran، UTC+03:30، بلا توقيت صيفي)، وأسماء الشهور وأيام الأسبوع بالفارسية، والتنسيق والتخزين والتحويل ونطاقات التواريخ والتقارير وحساب الأعمار والعطلات. استخدم هذه المهارة كلما ظهر تاريخ أو وقت أو تقويم أو منتقي تاريخ أو موعد نهائي أو حجز أو فترة تقرير أو عمر أو عطلة في منتج فارسي (فارسي)، أو عندما يقول المستخدم تاریخ شمسی، تقویم فارسی، jalali، شنبه، نوروز.

لماذا تستخدم Jalali Calendar على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Jalali Calendar عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Jalali Calendar في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/MiladJoodi/skills/tree/main/skills/jalali-calendar. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Jalali Calendar؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Jalali Calendar؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Jalali Calendar معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Jalali Calendar مجانية؟

نعم. نشرها MiladJoodi على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇