{
  "schemaVersion": 1,
  "slug": "minutes-to-hours-converter",
  "category": "date-time",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "f41edcbafcffce6ac25524c95cb3bcff30130779b30db79a6c61132c06af3d28",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/minutes-to-hours-converter.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "h = min ÷ 60; s = min × 60; d = h ÷ 24",
    "vars": [
      [
        "h",
        "hours (decimal)"
      ],
      [
        "min",
        "minutes"
      ],
      [
        "s",
        "seconds"
      ],
      [
        "d",
        "days"
      ]
    ],
    "note": "Formats the absolute hour and minute components, then applies one sign to the full duration (for example, −90 min → −1h 30m)."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-12",
    "sources": [
      {
        "name": "MDN — Date and UTC calendar operations",
        "url": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date"
      }
    ],
    "referenceRole": "definition",
    "implementationHash": "f41edcbafcffce6ac25524c95cb3bcff30130779b30db79a6c61132c06af3d28",
    "basis": "h = min ÷ 60; s = min × 60; d = h ÷ 24",
    "limitations": "The references explain definitions and methods; any extra preset must be checked against the assumptions on this page."
  },
  "contract": {
    "compute": "const totalSeconds=Math.round(minutes*60),abs=Math.abs(totalSeconds),sign=totalSeconds<0?'-':'',whole=Math.floor(abs/3600),rem=Math.floor(abs%3600/60),h=minutes/60;return{hours:h,hoursAndMinutes:sign+whole+'h '+rem+'m',seconds:minutes*60,decimalHours:h,days:h/24}",
    "inputs": [
      {
        "name": "minutes",
        "type": "number",
        "default": 135,
        "min": -1000000,
        "max": 1000000,
        "step": 1
      }
    ],
    "outputs": [
      {
        "name": "hours",
        "precision": 4,
        "unit": "h"
      },
      {
        "name": "hoursAndMinutes",
        "precision": 0,
        "unit": "",
        "type": "text"
      },
      {
        "name": "seconds",
        "precision": 0,
        "unit": "s"
      },
      {
        "name": "decimalHours",
        "precision": 4,
        "unit": "h"
      },
      {
        "name": "days",
        "precision": 4,
        "unit": "days"
      }
    ],
    "interpret": null
  }
}
