From d0aeda7bdd562ac899fef13e84938f3a7b5a150d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20Fugulin?= Date: Fri, 8 Jul 2022 06:20:28 -0400 Subject: [PATCH] Add time from u64 (#849) --- src/executor/query.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/executor/query.rs b/src/executor/query.rs index bce8c87c..46462ced 100644 --- a/src/executor/query.rs +++ b/src/executor/query.rs @@ -789,6 +789,18 @@ try_from_u64_err!(chrono::DateTime); #[cfg(feature = "with-chrono")] try_from_u64_err!(chrono::DateTime); +#[cfg(feature = "with-time")] +try_from_u64_err!(time::Date); + +#[cfg(feature = "with-time")] +try_from_u64_err!(time::Time); + +#[cfg(feature = "with-time")] +try_from_u64_err!(time::PrimitiveDateTime); + +#[cfg(feature = "with-time")] +try_from_u64_err!(time::OffsetDateTime); + #[cfg(feature = "with-rust_decimal")] try_from_u64_err!(rust_decimal::Decimal);