{
  "slug": "date-diff",
  "name": "gizza-ai/date-diff",
  "version": "0.1.0",
  "title": "Date Difference Calculator — Days, Weeks, Months & Years Between Dates — gizza.ai",
  "description": "Calculate the exact duration between two dates: years, months, days, hours, minutes and seconds, with leap years handled. Free, private, in-browser.",
  "tags": [
    "date difference",
    "days between dates",
    "date calculator",
    "duration calculator",
    "date diff",
    "time between dates",
    "weeks between dates",
    "months between dates",
    "age in days"
  ],
  "category": "time",
  "urls": {
    "page": "https://gizza.ai/tools/date-diff/",
    "markdown": "https://gizza.ai/tools/date-diff/index.md",
    "descriptor": "https://gizza.ai/tools/date-diff/tool.json",
    "deep_link_example": "https://gizza.ai/tools/date-diff/?start=2024-01-15&end=2026-06-22T18%3A30%3A00"
  },
  "cli": "gizza tool date-diff \"2024-01-15\" 'end=2026-06-22T18:30:00'",
  "tool": {
    "description": "Compute the duration between two dates or datetimes. Returns a calendar breakdown (years, months, days, hours, minutes, seconds), flat totals (weeks, days, hours, minutes, seconds), and a human-readable summary.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "end": {
          "description": "The end date or datetime, in the same accepted formats as `start`.",
          "type": "string"
        },
        "start": {
          "description": "The start date or datetime. Accepts YYYY-MM-DD, YYYY-MM-DDTHH:MM:SS, RFC-3339 (with Z/offset), and common variants like YYYY/MM/DD, MM/DD/YYYY, DD.MM.YYYY.",
          "type": "string"
        }
      },
      "required": [
        "start",
        "end"
      ],
      "type": "object"
    }
  }
}