From 2c4d791f019b6b23bf1f90fd09cf39a6afd232e3 Mon Sep 17 00:00:00 2001 From: Emile Fugulin Date: Wed, 6 Jul 2022 14:52:30 -0400 Subject: [PATCH] Add time from u64 --- src/executor/query.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/executor/query.rs b/src/executor/query.rs index bce8c87cb..46462ced7 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);