現在時刻
GET/api/v1/time
タイムゾーンまたは都市の現在時刻:現地時刻、UTCオフセット、略称、夏時間、次の時刻の切り替え。パラメーターなしの場合はUTC。
パラメーター
| 名前 | 意味 |
|---|---|
tz任意 | IANAタイムゾーン名(例:Europe/London)。Asia/Calcuttaなどのエイリアスも受け付け、現在の名前で応答します。 |
city任意 | tzの代わりに使う都市のスラッグ(例:london。スラッグは/citiesで検索)。 |
リクエスト例
curl "https://hourora.app/api/v1/time?tz=Europe/London"レスポンス例
{
"zone": "Europe/London",
"local": "2026-10-15T15:23:32",
"iso": "2026-10-15T15:23:32+01:00",
"offsetMinutes": 60,
"offset": "+01:00",
"utcOffset": "UTC+1",
"abbreviation": "BST",
"dst": true,
"city": null,
"utc": "2026-10-15T14:23:32.411Z",
"unixMs": 1792074212411,
"date": "2026-10-15",
"time": "15:23:32",
"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"
}このサーバーからの実際のレスポンスです。