{
  "function": "DATEVALUE",
  "software": "Gnumeric",
  "guide": "/gnumeric/functions/datevalue/",
  "review_date": "2026-10-12",
  "scope": "Selected example checks, not certification of every formula, error, locale or cross-application import/export.",
  "native_engine": null,
  "native_assertions": 0,
  "native_observations": 0,
  "native_cases": [],
  "independent_model_cases": [
    {
      "software": "gnumeric",
      "function": "DATEVALUE",
      "case": "leap-day serial",
      "formula": "=DATEVALUE(DATE(2024,2,29)+TIME(15,30,0))",
      "actual": 45351,
      "expected": 45351,
      "passed": true,
      "method": "Documented numeric-serial date-part model; excludes text parsing",
      "native_application": false
    },
    {
      "software": "gnumeric",
      "function": "DATEVALUE",
      "case": "March 1 numeric timestamp",
      "formula": "=DATEVALUE(DATE(2024,3,1)+TIME(23,59,59))",
      "actual": 45352,
      "expected": 45352,
      "passed": true,
      "method": "Numeric-serial arithmetic",
      "native_application": false
    },
    {
      "software": "gnumeric",
      "function": "DATEVALUE",
      "case": "time remainder",
      "formula": "",
      "actual": 0.6458333333333334,
      "expected": 0.6458333333333333,
      "passed": true,
      "method": "Numeric-serial arithmetic",
      "native_application": false
    }
  ],
  "documented_expected_results_not_native": true,
  "sources": [
    "https://gnome.pages.gitlab.gnome.org/gnumeric/manual/CATEGORY_DateTime.html#gnumeric-function-DATEVALUE",
    "https://github.com/GNOME/gnumeric/blob/GNUMERIC_1_12_62/plugins/fn-date/functions.c#L264-L279",
    "https://github.com/GNOME/gnumeric/blob/GNUMERIC_1_12_62/src/gnm-datetime.c",
    "https://gnome.pages.gitlab.gnome.org/gnumeric-web/functions.shtml",
    "https://github.com/GNOME/gnumeric/blob/GNUMERIC_1_12_62/plugins/fn-date/functions.c#L63-L84",
    "https://gnome.pages.gitlab.gnome.org/gnumeric-web/date-time-formats.shtml",
    "https://support.microsoft.com/en-us/excel/functions/datevalue-function"
  ]
}
