[]Struct qmetaobject::qttypes::QDateTime

#[repr(C)]
pub struct QDateTime { /* fields omitted */ }

Wrapper around Qt's QDateTime class

Methods

impl QDateTime[src]

pub fn from_date(date: QDate) -> Self[src]

Constructs a QDateTime from a QDate. Refer to the documentation for QDateTime's constructor using QDate.

pub fn from_date_time_local_timezone(date: QDate, time: QTime) -> Self[src]

Constructs a QDateTime from a QDate and a QTime, using the current system timezone.

Equivalent to the C++ code QDateTime(date, time). Refer to the documentation for QDateTime's constructor using QDate, QTime and Qt::TimeSpec.

pub fn get_date(&self) -> QDate[src]

Gets the date component from a QDateTime. Refer to the documentation for QDateTime::date.

pub fn get_time(&self) -> QTime[src]

Gets the time component from a QDateTime. Refer to the documentation for QDateTime::time.

pub fn get_date_time(&self) -> (QDate, QTime)[src]

Convenience function for obtaining both date and time components.

pub fn is_valid(&self) -> bool[src]

Refer to the Qt documentation for QDateTime::isValid.

Trait Implementations

impl QMetaType for QDateTime[src]

impl Drop for QDateTime

impl From<QDateTime> for QVariant[src]

impl Clone for QDateTime

impl Default for QDateTime

impl Eq for QDateTime

impl Ord for QDateTime

impl PartialEq<QDateTime> for QDateTime

impl PartialOrd<QDateTime> for QDateTime

impl StructuralEq for QDateTime

Auto Trait Implementations

Blanket Implementations

impl<T> QMetaType for T where
    T: QGadget + Clone + Default + 'static, 
[src]

impl<T> PropertyType for T where
    T: QMetaType
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]