Struct qt_core::DateFormat
source · pub struct DateFormat(/* private fields */);
Expand description
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.
Implementations§
source§impl DateFormat
impl DateFormat
sourcepub const TextDate: DateFormat = _
pub const TextDate: DateFormat = _
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
)
sourcepub const ISODate: DateFormat = _
pub const ISODate: DateFormat = _
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
)
sourcepub const SystemLocaleDate: DateFormat = _
pub const SystemLocaleDate: DateFormat = _
This enum value is deprecated. Use Qt::SystemLocaleShortDate instead (or Qt::SystemLocaleLongDate if you want long dates). (C++ enum variant: SystemLocaleDate = 2
)
sourcepub const LocalDate: DateFormat = _
pub const LocalDate: DateFormat = _
This enum value is deprecated. Use Qt::SystemLocaleShortDate instead (or Qt::SystemLocaleLongDate if you want long dates). (C++ enum variant: LocalDate = 2
)
sourcepub const LocaleDate: DateFormat = _
pub const LocaleDate: DateFormat = _
This enum value is deprecated. Use Qt::DefaultLocaleShortDate instead (or Qt::DefaultLocaleLongDate if you want long dates). (C++ enum variant: LocaleDate = 3
)
sourcepub const SystemLocaleShortDate: DateFormat = _
pub const SystemLocaleShortDate: DateFormat = _
The short format used by the operating system. (C++ enum variant: SystemLocaleShortDate = 4
)
sourcepub const SystemLocaleLongDate: DateFormat = _
pub const SystemLocaleLongDate: DateFormat = _
The long format used by the operating system. (C++ enum variant: SystemLocaleLongDate = 5
)
sourcepub const DefaultLocaleShortDate: DateFormat = _
pub const DefaultLocaleShortDate: DateFormat = _
The short format specified by the application’s locale. (C++ enum variant: DefaultLocaleShortDate = 6
)
sourcepub const DefaultLocaleLongDate: DateFormat = _
pub const DefaultLocaleLongDate: DateFormat = _
The long format used by the application’s locale. (C++ enum variant: DefaultLocaleLongDate = 7
)
sourcepub const RFC2822Date: DateFormat = _
pub const RFC2822Date: DateFormat = _
sourcepub const ISODateWithMs: DateFormat = _
pub const ISODateWithMs: DateFormat = _
ISO 8601 extended format, including milliseconds if applicable. (C++ enum variant: ISODateWithMs = 9
)
Trait Implementations§
source§impl Clone for DateFormat
impl Clone for DateFormat
source§fn clone(&self) -> DateFormat
fn clone(&self) -> DateFormat
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DateFormat
impl Debug for DateFormat
source§impl From<DateFormat> for c_int
impl From<DateFormat> for c_int
source§fn from(value: DateFormat) -> Self
fn from(value: DateFormat) -> Self
source§impl From<i32> for DateFormat
impl From<i32> for DateFormat
source§impl PartialEq for DateFormat
impl PartialEq for DateFormat
source§fn eq(&self, other: &DateFormat) -> bool
fn eq(&self, other: &DateFormat) -> bool
self
and other
values to be equal, and is used
by ==
.