Şu anki saat
GET/api/v1/time
Bir saat dilimi veya şehirdeki şu anki saat: yerel saat, UTC farkı, kısaltma, yaz saati ve bir sonraki saat değişikliği. Parametre verilmezse: UTC.
Parametreler
| Ad | Anlamı |
|---|---|
tzisteğe bağlı | IANA saat dilimi adı, ör. Europe/London. Asia/Calcutta gibi takma adlar kabul edilir ve güncel adla yanıtlanır. |
cityisteğe bağlı | tz yerine şehrin kısa adı (slug), ör. london (kısa adları /cities ile bulun). |
Örnek istek
curl "https://hourora.app/api/v1/time?tz=Europe/London"Örnek yanıt
{
"zone": "Europe/London",
"local": "2026-10-13T22:55:51",
"iso": "2026-10-13T22:55:51+01:00",
"offsetMinutes": 60,
"offset": "+01:00",
"utcOffset": "UTC+1",
"abbreviation": "BST",
"dst": true,
"city": null,
"utc": "2026-10-13T21:55:51.712Z",
"unixMs": 1791928551712,
"date": "2026-10-13",
"time": "22:55:51",
"weekday": "Tuesday",
"dayOfYear": 286,
"isoWeek": 42,
"dstObserved": true,
"nextTransition": {
"at": "2026-10-25T01:00:00.000Z",
"unixMs": 1792890000000,
"type": "dst-end",
"fromOffsetMinutes": 60,
"toOffsetMinutes": 0,
"shiftMinutes": -60,
"fromAbbreviation": "BST",
"toAbbreviation": "GMT",
"localBefore": "2026-10-25T02:00:00",
"localAfter": "2026-10-25T01:00:00"
},
"tzdata": "2026e"
}Bu sunucudan gerçek yanıt.