{
  "slug": "time-to-decimal-hours",
  "name": "gizza-ai/time-to-decimal-hours",
  "version": "0.1.0",
  "title": "Time to Decimal Hours Converter — HH:MM to Decimal and Back — gizza.ai",
  "description": "Convert HH:MM to decimal hours (1:30 → 1.5) and back for timesheets, payroll and billing — plus total minutes and seconds. Free, private, in-browser.",
  "tags": [
    "time to decimal",
    "hours and minutes to decimal",
    "decimal hours converter",
    "hh:mm to decimal",
    "timesheet calculator",
    "payroll hours",
    "minutes to decimal",
    "decimal to hours and minutes",
    "billable hours"
  ],
  "category": "time",
  "urls": {
    "page": "https://gizza.ai/tools/time-to-decimal-hours/",
    "markdown": "https://gizza.ai/tools/time-to-decimal-hours/index.md",
    "descriptor": "https://gizza.ai/tools/time-to-decimal-hours/tool.json",
    "deep_link_example": "https://gizza.ai/tools/time-to-decimal-hours/?value=1%3A30&mode=auto"
  },
  "cli": "gizza tool time-to-decimal-hours \"1:30\"",
  "tool": {
    "description": "Convert a clock duration (H:MM or H:MM:SS) into decimal hours (e.g. 1:30 → 1.5) and convert decimal hours back into a clock duration (e.g. 1.5 → 1:30). Returns both forms together plus flat totals in minutes and seconds. Use 'auto' to detect the input form, or force it with 'from-clock' / 'from-decimal'. Handy for timesheets, payroll and billing.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "mode": {
          "default": "auto",
          "description": "How to interpret `value`. 'auto' (default) reads it as a clock duration if it contains a colon, else as decimal hours; 'from-clock' forces clock parsing; 'from-decimal' forces decimal-hours parsing.",
          "enum": [
            "auto",
            "from-clock",
            "from-decimal"
          ],
          "type": "string"
        },
        "value": {
          "description": "The duration to convert. Either a clock duration like '1:30' or '01:30:45' (H:MM or H:MM:SS), or a decimal number of hours like '1.5'. A leading '-' makes it negative.",
          "type": "string"
        }
      },
      "required": [
        "value"
      ],
      "type": "object"
    }
  }
}