← 世界时间

按时区查询当前时间

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": "07/07/2026",
    "dateTime": "2026-07-07T01:00:16.7393979",
    "day": 7,
    "dayOfWeek": "Tuesday",
    "dstActive": true,
    "hour": 1,
    "minute": 0,
    "month": 7,
    "seconds": 16,
    "time": "01:00",
    "timeZone": "Europe/Oslo",
    "year": 2026
  },
  "success": true
}