#[repr(C)]
pub struct QDateTime { /* private fields */ }
Expand description

The QDateTime class provides date and time functions.

Implementations

Returns the date part of the datetime.

Returns the time part of the datetime.

Construct a Rust QDateTime from a given QDate and QTime

Sets the date part of this datetime to date. If no time is set yet, it is set to midnight. If date is invalid, this QDateTime becomes invalid.

Sets the time part of this datetime to time. If time is not valid, this function sets it to midnight. Therefore, it’s possible to clear any set time in a QDateTime by setting it to a default QTime.

Trait Implementations

Constructs a copy of the other datetime.

Performs copy-assignment from source. Read more

Construct a default null QDateTime

Destroys the datetime.

A type-level representation of the type’s C++ namespace and type name. Read more

Constructs a QVariant from a reference of $typeName

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.