From 4667ec07772ab53a591457b751e85d5c6183d673 Mon Sep 17 00:00:00 2001 From: Mathias Lafeldt Date: Wed, 16 Jul 2025 17:03:48 +0200 Subject: [PATCH] Document what Date32 is and how to convert it --- crates/duckdb/src/types/value.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/duckdb/src/types/value.rs b/crates/duckdb/src/types/value.rs index f8bf56c4..b0fc1f8a 100644 --- a/crates/duckdb/src/types/value.rs +++ b/crates/duckdb/src/types/value.rs @@ -43,6 +43,10 @@ pub enum Value { /// The value is a blob of data Blob(Vec), /// The value is a date32 + /// + /// The `i32` represents the number of days since the Unix epoch (1970-01-01). + /// + /// Enable the `chrono` feature for easy conversion to proper date types like `NaiveDate`. Date32(i32), /// The value is a time64 Time64(TimeUnit, i64),