{
  "address": "e40c085c184861f24f9c6e0ad8a79172",
  "category": "other",
  "question": "Is 2000 a leap year?",
  "answer": "yes",
  "askedBy": {
    "kind": "guest",
    "display": "method deck",
    "stamped": false,
    "id": null
  },
  "answeredBy": "method",
  "madeAt": "2026-09-30T22:39:30.722Z",
  "validUntil": null,
  "validityClass": "forever",
  "sources": [
    {
      "label": "Calendars FAQ",
      "url": "https://aa.usno.navy.mil/faq/calendars"
    }
  ],
  "supersedes": null,
  "supersededBy": null,
  "isSeed": false,
  "seedSource": null,
  "seedAttribution": null,
  "duplicateOfQid": null,
  "publishedAt": null,
  "unpublishedAt": null,
  "voteCount": 0,
  "queuedForSubstrate": false,
  "answerMethod": "method",
  "unsourced": false,
  "source": {
    "kind": "url",
    "value": "https://aa.usno.navy.mil/faq/calendars",
    "retrieved_utc": "2026-09-30T19:41:35Z"
  },
  "qsha256": "9f1c972a1fda05e5758d909158a8500bb3558da369fc6a4a7e29c5325586f7d6",
  "runOne": null,
  "cardContractVersion": "card_contract/1",
  "deck_id": "method-deck",
  "deck_title": "Method Deck",
  "method": {
    "name": "Is it a leap year?",
    "version": "1",
    "source_url_or_file": "methods/is-leap-year.cjs",
    "sha256_of_method_file": "bedbb6cd17134c76341c4dcbb83a8baaafbb9f2060109d14317f3fbfa8c471cb"
  },
  "receipt": {
    "inSubstrate": false,
    "local": true,
    "modelCallsAtMint": 0,
    "tokensAtMint": 0
  },
  "method_deck": {
    "inputs": [
      {
        "name": "year",
        "type": "integer",
        "required": true,
        "description": "Proleptic Gregorian calendar year"
      }
    ],
    "outputs": [
      {
        "name": "is_leap",
        "type": "boolean",
        "description": "True if the year has a February 29"
      }
    ],
    "steps": [
      "A year is a leap year if it is divisible by 4.",
      "Exception: a year divisible by 100 is NOT a leap year.",
      "Exception to the exception: a year divisible by 400 IS a leap year.",
      "Apply the rules in that order (or equivalently: divisible by 4 and not by 100, OR divisible by 400)."
    ],
    "constants": [],
    "examples": [
      {
        "name": "worked example",
        "inputs": {
          "year": 2000
        },
        "expected": {
          "answer": "yes"
        },
        "check": "2000 is divisible by 400, so it is a leap year despite being a century year"
      },
      {
        "name": "test vector: century exception",
        "inputs": {
          "year": 1900
        },
        "expected": {
          "answer": "no"
        },
        "check": "1900 is divisible by 100 but not by 400, so it is not a leap year"
      },
      {
        "name": "test vector: ordinary leap year",
        "inputs": {
          "year": 2024
        },
        "expected": {
          "answer": "yes"
        },
        "check": "2024 is divisible by 4 and not by 100"
      }
    ],
    "disclaimer": null,
    "deck_category": "dates"
  },
  "status": "minted",
  "kind": "method",
  "provenanceClass": "own_question",
  "provenance": {
    "schema": "card_provenance/2.0.0",
    "chain": [
      {
        "source": {
          "kind": "url",
          "value": "https://aa.usno.navy.mil/faq/calendars",
          "retrieved_utc": "2026-09-30T19:41:35Z"
        },
        "sha256": "ef5e1bffdf44124d718023ea7eff556b3eaa7034e2f54814828e119024e3570d",
        "supersedes": null,
        "added_utc": "2026-09-30T22:39:30.722Z",
        "added_by": "method:Is it a leap year?",
        "why": "the method that computed this answer",
        "check": null,
        "status_label": "pending",
        "signature": null
      }
    ]
  }
}
