← 世界时间

按时区查询当前时间

GET /time/current

获取任何 IANA 时区的当前日期和时间。返回年、月、日、时、分、秒、格式化日期时间、星期几和夏令时状态。

参数

时区 必填

IANA timezone (e.g. Europe/Oslo, America/New_York, Asia/Tokyo)

请求示例

基本用法
curl "https://nordapi.ee/api/v1/time/current?timezone=Europe/Oslo"

实时响应

{
  "data": {
    "date": "04/05/2026",
    "dateTime": "2026-04-05T22:41:43.5187837",
    "day": 5,
    "dayOfWeek": "Sunday",
    "dstActive": true,
    "hour": 22,
    "minute": 41,
    "month": 4,
    "seconds": 43,
    "time": "22:41",
    "timeZone": "Europe/Oslo",
    "year": 2026
  },
  "success": true
}