Enum rigetti_pyo3::datetime::DateTime
source · pub enum DateTime {
Primitive(PrimitiveDateTime),
Offset(OffsetDateTime),
}Expand description
A type to represent datetimes with or without UTC offset information.
Variants§
Primitive(PrimitiveDateTime)
A datetime without UTC offset information.
Offset(OffsetDateTime)
A datetime with UTC offset.
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 moresource§impl PyTryFrom<PyDateTime> for DateTime
impl PyTryFrom<PyDateTime> for DateTime
source§fn py_try_from(py: Python<'_>, item: Py<PyDateTime>) -> PyResult<Self>
fn py_try_from(py: Python<'_>, item: Py<PyDateTime>) -> PyResult<Self>
source§fn py_try_from_ref(py: Python<'_>, item: &PyDateTime) -> PyResult<Self>
fn py_try_from_ref(py: Python<'_>, item: &PyDateTime) -> PyResult<Self>
Convert from a reference to the Python data. Read more