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 more