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_hms(hour: u8, minute: u8, second: u8) -> Self
pub fn from_hmfs(hour: u8, minute: u8, second: f64) -> Self
pub fn from_hmfs_tz( hour: u8, minute: u8, second: f64, tz_hours: Option<i8>, tz_minutes: Option<i8> ) -> Self
pub fn from_ymd(year: i32, month: NonZeroU8, day: u8) -> Self
pub fn from_ymdhms( year: i32, month: NonZeroU8, day: u8, hour: u8, minute: u8, second: f64 ) -> Self
Trait Implementations§
source§impl Ord for DateTime
impl Ord for DateTime
source§impl PartialEq<DateTime> for DateTime
impl PartialEq<DateTime> for DateTime
source§impl PartialOrd<DateTime> for DateTime
impl PartialOrd<DateTime> 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 more