![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
A description of a serialization format for a time. More...
#include <qttemporalpattern_p.h>
Public Member Functions | |
| bool | isValid () const noexcept |
| void | setLocale (const QLocale &loc) |
| const QLocale & | locale () const noexcept |
| Returns the current locale in use by this pattern. | |
| Q_CORE_EXPORT QtTemporalPattern::ParseResult< QTime > | parse (QStringView text, QTime defaults={}) const |
| Parse and return the time represented by text. | |
| Q_CORE_EXPORT QString | serialize (const QTime &time) const |
| Serialize the given time to a string representation. | |
Static Public Member Functions | |
| static Q_CORE_EXPORT QTimePattern | fromQtFormat (QStringView format) |
| Construct a QTimePattern described by the given format string. | |
| static QTimePattern | forLocale (const QLocale &locale, QLocale::FormatType format=QLocale::LongFormat) |
| Construct a QTimePattern appropriate to the given locale. | |
A description of a serialization format for a time.
Definition at line 243 of file qttemporalpattern_p.h.
|
inlinestatic |
Construct a QTimePattern appropriate to the given locale.
The format can be used to select how compact or expansive the pattern is.
Definition at line 269 of file qttemporalpattern_p.h.
|
static |
Construct a QTimePattern described by the given format string.
Definition at line 1020 of file qttemporalpattern.cpp.
|
inlinenoexcept |
{is-valid} {time}
Definition at line 256 of file qttemporalpattern_p.h.
References QtTemporalPattern::Clear.
|
inlinenoexcept |
Returns the current locale in use by this pattern.
Definition at line 261 of file qttemporalpattern_p.h.
| QtTemporalPattern::ParseResult< QTime > QTimePattern::parse | ( | QStringView | text, |
| QTime | defaults = {} ) const |
Parse and return the time represented by text.
parser-defaults
Definition at line 990 of file qttemporalpattern.cpp.
Serialize the given time to a string representation.
Definition at line 1008 of file qttemporalpattern.cpp.
set-locale
Definition at line 260 of file qttemporalpattern_p.h.