![]() |
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 | isNull () const noexcept |
Returns true if this pattern has no fields, otherwise false. | |
| 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 253 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 280 of file qttemporalpattern_p.h.
|
static |
Construct a QTimePattern described by the given format string.
If the format is empty or malformed, the returned pattern's isNull() shall be true. Otherwise, isNull() shall be false.
Definition at line 1090 of file qttemporalpattern.cpp.
|
inlinenoexcept |
Returns true if this pattern has no fields, otherwise false.
Definition at line 266 of file qttemporalpattern_p.h.
|
inlinenoexcept |
{is-valid} {time}
Definition at line 267 of file qttemporalpattern_p.h.
References QtTemporalPattern::Clear.
|
inlinenoexcept |
Returns the current locale in use by this pattern.
Definition at line 272 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 1057 of file qttemporalpattern.cpp.
Serialize the given time to a string representation.
Definition at line 1075 of file qttemporalpattern.cpp.
set-locale
Definition at line 271 of file qttemporalpattern_p.h.