[−][src]Struct qt_core::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
.
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]
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]
fn clone(&self) -> DateFormat
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DateFormat
[src]
impl Debug for DateFormat
[src]
impl Eq for DateFormat
[src]
impl From<DateFormat> for c_int
[src]
fn from(value: DateFormat) -> Self
[src]
impl From<i32> for DateFormat
[src]
impl PartialEq<DateFormat> for DateFormat
[src]
fn eq(&self, other: &DateFormat) -> bool
[src]
fn ne(&self, other: &DateFormat) -> bool
[src]
impl StructuralEq for DateFormat
[src]
impl StructuralPartialEq for DateFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for DateFormat
impl Send for DateFormat
impl Sync for DateFormat
impl Unpin for DateFormat
impl UnwindSafe for DateFormat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,