Deen Time
Your daily Islamic prayer companion. Provides accurate Salah times (Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha) for any city or coordinates worldwide. During Ramadan, also provides Suhoor (pre-dawn meal) and Iftar (fast-breaking) schedules with full monthly calendars.
When to Use This Skill
Use this skill when the user asks about:
- - Prayer times for a specific location
- Iftar or Suhoor times
- Ramadan schedule or timetable
- When to break fast or start fasting
- Fajr, Dhuhr, Asr, Maghrib, or Isha times
- Islamic prayer schedule
How It Works
This skill uses the Aladhan Prayer Times API (https://aladhan.com/prayer-times-api), a free and reliable public API that requires no authentication.
Fetching Prayer Times by City
CODEBLOCK0
Replace {CITY}, {COUNTRY}, and {METHOD} with actual values. URL-encode spaces (e.g., New%20York). Always use -L to follow redirects.
Fetching Prayer Times by Coordinates
CODEBLOCK1
Use this when the user provides latitude/longitude or when a city name is ambiguous.
Fetching a Full Monthly Calendar
CODEBLOCK2
Use this for Ramadan schedules. {MONTH} is the Gregorian month number (1-12).
Calculation Methods
The method parameter controls prayer time calculation. Pick the most appropriate one based on the user's region:
| Method | Organization | Best For |
|---|
| 1 | University of Islamic Sciences, Karachi | Pakistan, Bangladesh, India |
| 2 |
Islamic Society of North America (ISNA) | North America |
| 3 | Muslim World League (MWL) | Europe, Far East |
| 4 | Umm Al-Qura University, Makkah | Saudi Arabia, Gulf |
| 5 | Egyptian General Authority of Survey | Africa, Syria, Lebanon |
| 7 | Institute of Geophysics, University of Tehran | Iran |
| 8 | Gulf Region | UAE, Kuwait, Qatar |
| 9 | Kuwait | Kuwait |
| 10 | Qatar | Qatar |
| 11 | Majlis Ugama Islam Singapura | Singapore |
| 12 | Union Organization Islamic de France | France |
| 13 | Diyanet Isleri Baskanligi | Turkey |
| 14 | Spiritual Administration of Muslims of Russia | Russia |
| 15 | Moonsighting Committee Worldwide | Global (moonsighting-based) |
Defaults: Use method 2 for North America, 4 for Saudi/Gulf, 3 for Europe, 5 for Africa, 13 for Turkey, 1 for South Asia. If the user doesn't specify a preference, select based on their location.
API Response Structure
The API returns JSON. The key fields to extract:
CODEBLOCK3
For the calendar endpoint, data is an array of day objects with the same structure.
Presenting Results
Daily Prayer Times
Display as a clean table:
CODEBLOCK4
Ramadan Monthly Schedule
For monthly requests, present a condensed table:
CODEBLOCK5
Important Notes to Convey
- - Suhoor must be completed before Fajr. The Imsak time (typically 10 min before Fajr) is the recommended cutoff.
- Iftar is at Maghrib (sunset).
- All times are in the local timezone of the requested location.
- If the user doesn't specify a location, ask for their city and country.
- If the user doesn't specify a date, use today's date.
Example Interactions
User: "What are the prayer times for London today?"
→ Call: curl -L "https://api.aladhan.com/v1/timingsByCity?city=London&country=United%20Kingdom&method=3"
→ Display all prayer times in a formatted table with both Gregorian and Hijri dates.
User: "When is Iftar in Dubai?"
→ Call: curl -L "https://api.aladhan.com/v1/timingsByCity?city=Dubai&country=United%20Arab%20Emirates&method=4"
→ Highlight the Maghrib time as the Iftar time.
User: "Give me the Ramadan schedule for Istanbul"
→ Determine the Gregorian months that overlap with Ramadan for the current year.
→ Call: curl -L "https://api.aladhan.com/v1/calendarByCity/2026/2?city=Istanbul&country=Turkey&method=13" (and March if Ramadan spans two months)
→ Filter to only Ramadan days (check Hijri month = 9 / Ramadan) and present the Suhoor/Iftar table.
User: "Suhoor time for New York?"
→ Call: curl -L "https://api.aladhan.com/v1/timingsByCity?city=New%20York&country=United%20States&method=2"
→ Show the Imsak and Fajr times. Recommend stopping eating at Imsak (10 min before Fajr).
User: "Prayer times for coordinates 21.4225, 39.8262"
→ Call: curl -L "https://api.aladhan.com/v1/timings/19-02-2026?latitude=21.4225&longitude=39.8262&method=4"
→ Display full prayer times (these coordinates are Makkah, so use Umm Al-Qura method).
Privacy and Data Handling
This skill makes read-only HTTPS requests to the Aladhan Prayer Times API, a well-known, free, public Islamic prayer times service.
- - Data sent: Only the city/country name or coordinates provided by the user, plus a calculation method number. No personal data, credentials, or device information is transmitted.
- Data received: Prayer times (JSON) for the requested location and date. No tracking, cookies, or user profiling.
- No authentication: The API requires no API keys, tokens, or accounts.
- No data storage: This skill does not write to disk, store user data, or maintain any state between invocations.
- Single domain: All network requests go exclusively to
api.aladhan.com over HTTPS. No other external endpoints are contacted.
Deen Time
您每日伊斯兰祈祷的伴侣。提供全球任何城市或坐标的准确礼拜时间(晨礼、日出、晌礼、晡礼、昏礼、宵礼)。斋月期间,还提供封斋饭和开斋时间表,附完整月度日历。
何时使用此技能
当用户询问以下内容时使用此技能:
- - 特定地点的礼拜时间
- 开斋或封斋时间
- 斋月时间表或日程
- 何时开斋或开始封斋
- 晨礼、晌礼、晡礼、昏礼或宵礼时间
- 伊斯兰祈祷时间表
工作原理
此技能使用 Aladhan 祈祷时间 API(https://aladhan.com/prayer-times-api),这是一个免费可靠的公共 API,无需身份验证。
按城市获取祈祷时间
bash
curl -L https://api.aladhan.com/v1/timingsByCity?city={城市}&country={国家}&method={方法}
将 {城市}、{国家} 和 {方法} 替换为实际值。空格需进行 URL 编码(例如 New%20York)。始终使用 -L 以跟随重定向。
按坐标获取祈祷时间
bash
curl -L https://api.aladhan.com/v1/timings/{日-月-年}?latitude={纬度}&longitude={经度}&method={方法}
当用户提供纬度/经度或城市名称不明确时使用此方法。
获取完整月度日历
bash
curl -L https://api.aladhan.com/v1/calendarByCity/{年}/{月}?city={城市}&country={国家}&method={方法}
用于斋月时间表。{月} 为公历月份数字(1-12)。
计算方法
method 参数控制祈祷时间计算。根据用户所在地区选择最合适的方法:
| 方法 | 组织 | 最适合地区 |
|---|
| 1 | 卡拉奇伊斯兰科学大学 | 巴基斯坦、孟加拉国、印度 |
| 2 |
北美伊斯兰协会(ISNA) | 北美 |
| 3 | 穆斯林世界联盟(MWL) | 欧洲、远东 |
| 4 | 麦加乌姆·库拉大学 | 沙特阿拉伯、海湾地区 |
| 5 | 埃及测量总局 | 非洲、叙利亚、黎巴嫩 |
| 7 | 德黑兰大学地球物理研究所 | 伊朗 |
| 8 | 海湾地区 | 阿联酋、科威特、卡塔尔 |
| 9 | 科威特 | 科威特 |
| 10 | 卡塔尔 | 卡塔尔 |
| 11 | 新加坡伊斯兰宗教理事会 | 新加坡 |
| 12 | 法国伊斯兰组织联盟 | 法国 |
| 13 | 土耳其宗教事务局 | 土耳其 |
| 14 | 俄罗斯穆斯林精神管理局 | 俄罗斯 |
| 15 | 全球观月委员会 | 全球(基于观月) |
默认设置:北美使用方法 2,沙特/海湾地区使用方法 4,欧洲使用方法 3,非洲使用方法 5,土耳其使用方法 13,南亚使用方法 1。如果用户未指定偏好,则根据其位置选择。
API 响应结构
API 返回 JSON 格式。需提取的关键字段:
json
{
data: {
timings: {
Fajr: 05:12,
Sunrise: 06:30,
Dhuhr: 12:15,
Asr: 15:30,
Maghrib: 18:00,
Isha: 19:20,
Imsak: 05:02
},
date: {
readable: 2026年2月19日,
hijri: {
date: 02-09-1447,
month: { number: 9, en: Ramadan },
year: 1447
}
}
}
}
对于日历端点,data 是一个包含相同结构的每日对象数组。
呈现结果
每日祈祷时间
以简洁表格形式显示:
{城市},{国家}的祈祷时间
日期:{公历日期} | {伊斯兰历日期}
06:30 |
| 晌礼 | 12:15 |
| 晡礼 | 15:30 |
| 昏礼 | 18:00 |
| 宵礼 | 19:20 |
封斋饭:在05:12(晨礼)前停止进食。建议时间:05:02(禁食开始时间)。
开斋:在18:00(昏礼)开斋。
斋月月度时间表
对于月度请求,呈现简洁表格:
{城市}的斋月时间表 — {年}
| 天 | 日期 | 封斋饭(禁食开始) | 晨礼 | 开斋(昏礼) |
|---|
| 1 | 2月17日 | 05:02 | 05:12 | 17:45 |
| 2 |
2月18日 | 05:01 | 05:11 | 17:46 |
| ... | ... | ... | ... | ... |
需传达的重要说明
- - 封斋饭必须在晨礼前完成。禁食开始时间(通常为晨礼前10分钟)是建议的截止时间。
- 开斋在昏礼(日落)时进行。
- 所有时间均为请求地点的当地时间。
- 如果用户未指定地点,请询问其所在城市和国家。
- 如果用户未指定日期,则使用今天的日期。
交互示例
用户:今天伦敦的祈祷时间是几点?
→ 调用:curl -L https://api.aladhan.com/v1/timingsByCity?city=London&country=United%20Kingdom&method=3
→ 以格式化表格显示所有祈祷时间,包含公历和伊斯兰历日期。
用户:迪拜的开斋时间是几点?
→ 调用:curl -L https://api.aladhan.com/v1/timingsByCity?city=Dubai&country=United%20Arab%20Emirates&method=4
→ 突出显示昏礼时间作为开斋时间。
用户:给我伊斯坦布尔的斋月时间表
→ 确定当年与斋月重叠的公历月份。
→ 调用:curl -L https://api.aladhan.com/v1/calendarByCity/2026/2?city=Istanbul&country=Turkey&method=13(如果斋月跨两个月,还需调用3月)
→ 仅筛选出斋月天数(检查伊斯兰历月份 = 9 / Ramadan)并呈现封斋饭/开斋时间表。
用户:纽约的封斋饭时间?
→ 调用:curl -L https://api.aladhan.com/v1/timingsByCity?city=New%20York&country=United%20States&method=2
→ 显示禁食开始时间和晨礼时间。建议在禁食开始时间(晨礼前10分钟)停止进食。
用户:坐标21.4225, 39.8262的祈祷时间
→ 调用:curl -L https://api.aladhan.com/v1/timings/19-02-2026?latitude=21.4225&longitude=39.8262&method=4
→ 显示完整祈祷时间(这些坐标是麦加,因此使用乌姆·库拉方法)。
隐私与数据处理
此技能向知名的免费公共伊斯兰祈祷时间服务 Aladhan 祈祷时间 API 发送只读 HTTPS 请求。
- - 发送的数据:仅用户提供的城市/国家名称或坐标,以及一个计算方法编号。不传输任何个人数据、凭据或设备信息。
- 接收的数据:请求地点和日期的祈祷时间(JSON)。无跟踪、cookies 或用户画像。
- 无需身份验证:该 API 不需要任何 API 密钥、令牌或账户。
- 不存储数据:此技能不写入磁盘、不存储用户数据,也不在调用之间保持任何状态。
- 单一域名:所有网络请求仅通过 HTTPS 发送至 api.aladhan.com。不联系任何其他外部端点。