{
  "slug": "seconds-to-hms",
  "name": "gizza-ai/seconds-to-hms",
  "version": "0.1.0",
  "title": "Seconds to HH:MM:SS converter — gizza.ai",
  "description": "Convert seconds into HH:MM:SS, D:HH:MM:SS, ISO-8601, or human-readable duration text with optional fractional seconds. Runs locally in your browser.",
  "tags": [
    "seconds to hms",
    "duration converter",
    "hh:mm:ss",
    "time converter",
    "iso 8601 duration",
    "video timestamp"
  ],
  "category": "time",
  "urls": {
    "page": "https://gizza.ai/tools/seconds-to-hms/",
    "markdown": "https://gizza.ai/tools/seconds-to-hms/index.md",
    "descriptor": "https://gizza.ai/tools/seconds-to-hms/tool.json",
    "deep_link_example": "https://gizza.ai/tools/seconds-to-hms/?seconds=5025&format=hms&decimals=0"
  },
  "cli": "gizza tool seconds-to-hms \"5025\"",
  "tool": {
    "description": "Convert a number of seconds into a duration string. format='hms' (default) gives HH:MM:SS with the hours field accumulating past 24 (e.g. 90061 -> 25:01:01); format='dhms' splits out days as D:HH:MM:SS (e.g. 1:01:01:01); format='auto' returns the shortest clock form, dropping leading zero days/hours (MM:SS, HH:MM:SS, or D:HH:MM:SS); format='iso' returns an ISO-8601 duration (e.g. P1DT1H1M1S, zero -> PT0S); format='words' returns human-readable text (e.g. '1 hour, 1 minute, 1 second'). seconds may be fractional or negative (a negative input is '-'-prefixed); set decimals=1..9 to append fractional seconds (e.g. 90.5 -> 00:01:30.5).",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "decimals": {
          "default": 0,
          "description": "Fractional-second digits to append, 0-9. E.g. 90.5 with decimals=1 shows '...30.5'. Default 0 (whole seconds).",
          "maximum": 9,
          "minimum": 0,
          "type": "integer"
        },
        "format": {
          "default": "hms",
          "description": "Output layout. 'hms' (default) is HH:MM:SS with the hours field accumulating past 24 (e.g. 90061 -> 25:01:01); 'dhms' splits days out as D:HH:MM:SS (e.g. 1:01:01:01); 'auto' is the shortest clock form, dropping leading zero days/hours (MM:SS, HH:MM:SS, or D:HH:MM:SS); 'iso' is an ISO-8601 duration (e.g. P1DT1H1M1S, zero -> PT0S); 'words' is human-readable (e.g. '1 hour, 1 minute, 1 second').",
          "enum": [
            "hms",
            "dhms",
            "auto",
            "iso",
            "words"
          ],
          "type": "string"
        },
        "seconds": {
          "description": "The number of seconds to convert. May be fractional (e.g. 90.5) or negative.",
          "type": "number"
        }
      },
      "required": [
        "seconds"
      ],
      "type": "object"
    }
  }
}