Skip to content

Commit 4667ec0

Browse files
committed
Document what Date32 is and how to convert it
1 parent 6761ecd commit 4667ec0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/duckdb/src/types/value.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ pub enum Value {
4343
/// The value is a blob of data
4444
Blob(Vec<u8>),
4545
/// The value is a date32
46+
///
47+
/// The `i32` represents the number of days since the Unix epoch (1970-01-01).
48+
///
49+
/// Enable the `chrono` feature for easy conversion to proper date types like `NaiveDate`.
4650
Date32(i32),
4751
/// The value is a time64
4852
Time64(TimeUnit, i64),

0 commit comments

Comments
 (0)