Enum partiql_value::DateTime
source · pub enum DateTime {
Date(Date),
Time(Time),
TimeWithTz(Time, UtcOffset),
Timestamp(PrimitiveDateTime),
TimestampWithTz(OffsetDateTime),
}
Variants§
Date(Date)
Time(Time)
TimeWithTz(Time, UtcOffset)
Timestamp(PrimitiveDateTime)
TimestampWithTz(OffsetDateTime)
Implementations§
source§impl DateTime
impl DateTime
pub fn from_system_now_utc() -> Self
pub fn from_hms(hour: u8, minute: u8, second: u8) -> Self
pub fn from_hms_nano(hour: u8, minute: u8, second: u8, nanosecond: u32) -> Self
pub fn from_hms_nano_tz( hour: u8, minute: u8, second: u8, nanosecond: u32, tz_hours: Option<i8>, tz_minutes: Option<i8> ) -> Self
pub fn from_ymd(year: i32, month: NonZeroU8, day: u8) -> Self
pub fn from_ymdhms_nano_offset_minutes( year: i32, month: NonZeroU8, day: u8, hour: u8, minute: u8, second: u8, nanosecond: u32, offset: Option<i32> ) -> Self
Trait Implementations§
source§impl Ord for DateTime
impl Ord for DateTime
source§impl PartialEq for DateTime
impl PartialEq for DateTime
source§impl PartialOrd for DateTime
impl PartialOrd for DateTime
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for DateTime
impl StructuralPartialEq for DateTime
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnwindSafe for DateTime
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more