Huidige tijd
GET/api/v1/time
De huidige tijd in een tijdzone of stad: lokale tijd, UTC-offset, afkorting, zomertijd en de volgende klokwijziging. Zonder parameters: UTC.
Parameters
| Naam | Betekenis |
|---|---|
tzoptioneel | IANA-tijdzonenaam, bijv. Europe/London. Aliassen zoals Asia/Calcutta worden geaccepteerd en beantwoord met de huidige naam. |
cityoptioneel | Stadsslug in plaats van tz, bijv. london (vind slugs met /cities). |
Voorbeeldverzoek
curl "https://hourora.app/api/v1/time?tz=Europe/London"Voorbeeldantwoord
{
"zone": "Europe/London",
"local": "2026-10-15T15:06:10",
"iso": "2026-10-15T15:06:10+01:00",
"offsetMinutes": 60,
"offset": "+01:00",
"utcOffset": "UTC+1",
"abbreviation": "BST",
"dst": true,
"city": null,
"utc": "2026-10-15T14:06:10.073Z",
"unixMs": 1792073170073,
"date": "2026-10-15",
"time": "15:06:10",
"weekday": "Thursday",
"dayOfYear": 288,
"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"
}Echt antwoord van deze server.