生动早咖啡

生动早咖啡 · GPT-Aktionen

Get World Time Data

Retrieves current time data for a specific timezone.

  • GET /timezone/{timezone}GetCurrentTime

    Get the current time for a specific timezone

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Get World Time Data",
    "description": "Retrieves current time data for a specific timezone.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://worldtimeapi.org/api"
    }
  ],
  "paths": {
    "/timezone/{timezone}": {
      "get": {
        "description": "Get the current time for a specific timezone",
        "operationId": "GetCurrentTime",
        "parameters": [
          {
            "name": "timezone",
            "in": "path",
            "description": "The timezone to retrieve the current time for",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "datetime": {
                      "type": "string",
                      "description": "The current datetime in ISO 8601 format"
                    },
                    "timezone": {
                      "type": "string",
                      "description": "The IANA timezone name for the requested location"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}