[][src]Struct qt_core::DateFormat

#[repr(transparent)]pub struct DateFormat(_);

Note: For ISODate formats, each Y, M and D represents a single digit of the year, month and day used to specify the date. Each H, M and S represents a single digit of the hour, minute and second used to specify the time. The presence of a literal T character is used to separate the date and time when both are specified.

C++ enum: Qt::DateFormat.

C++ documentation:

Note: For ISODate formats, each Y, M and D represents a single digit of the year, month and day used to specify the date. Each H, M and S represents a single digit of the hour, minute and second used to specify the time. The presence of a literal T character is used to separate the date and time when both are specified.

Methods

impl DateFormat[src]

pub fn to_int(&self) -> c_int[src]

impl DateFormat[src]

pub const TextDate: DateFormat[src]

The default Qt format, which includes the day and month name, the day number in the month, and the year in full. The day and month names will be short, localized names. This is basically equivalent to using the date format string, "ddd MMM d yyyy". See QDate::toString() for more information. (C++ enum variant: TextDate = 0)

pub const ISODate: DateFormat[src]

ISO 8601 extended format: either YYYY-MM-DD for dates or YYYY-MM-DDTHH:mm:ss, YYYY-MM-DDTHH:mm:ssTZD (e.g., 1997-07-16T19:20:30+01:00) for combined dates and times. (C++ enum variant: ISODate = 1)

pub const SystemLocaleDate: DateFormat[src]

This enum value is deprecated. Use Qt::SystemLocaleShortDate instead (or Qt::SystemLocaleLongDate if you want long dates). (C++ enum variant: SystemLocaleDate = 2)

pub const LocalDate: DateFormat[src]

This enum value is deprecated. Use Qt::SystemLocaleShortDate instead (or Qt::SystemLocaleLongDate if you want long dates). (C++ enum variant: LocalDate = 2)

pub const LocaleDate: DateFormat[src]

This enum value is deprecated. Use Qt::DefaultLocaleShortDate instead (or Qt::DefaultLocaleLongDate if you want long dates). (C++ enum variant: LocaleDate = 3)

pub const SystemLocaleShortDate: DateFormat[src]

The short format used by the operating system. (C++ enum variant: SystemLocaleShortDate = 4)

pub const SystemLocaleLongDate: DateFormat[src]

The long format used by the operating system. (C++ enum variant: SystemLocaleLongDate = 5)

pub const DefaultLocaleShortDate: DateFormat[src]

The short format specified by the application's locale. (C++ enum variant: DefaultLocaleShortDate = 6)

pub const DefaultLocaleLongDate: DateFormat[src]

The long format used by the application's locale. (C++ enum variant: DefaultLocaleLongDate = 7)

pub const RFC2822Date: DateFormat[src]

RFC 2822, RFC 850 and RFC 1036 format: either [ddd,] dd MMM yyyy hh:mm[:ss] +/-TZ or ddd MMM dd yyyy hh:mm[:ss] +/-TZ for combined dates and times. (C++ enum variant: RFC2822Date = 8)

pub const ISODateWithMs: DateFormat[src]

ISO 8601 extended format, including milliseconds if applicable. (C++ enum variant: ISODateWithMs = 9)

Trait Implementations

impl Clone for DateFormat[src]

impl Copy for DateFormat[src]

impl Debug for DateFormat[src]

impl Eq for DateFormat[src]

impl From<DateFormat> for c_int[src]

impl From<i32> for DateFormat[src]

impl PartialEq<DateFormat> for DateFormat[src]

impl StructuralEq for DateFormat[src]

impl StructuralPartialEq for DateFormat[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

impl<T> StaticUpcast<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.