|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
The default date parser: ISO 8601 only, whatever the format. More...
#include <data_source.hpp>
Public Member Functions | |
| std::optional< std::int64_t > | parseDate (std::string_view text, std::string_view format) const override |
| Parses YYYY-MM-DD. | |
| std::optional< std::int64_t > | parseDateTime (std::string_view text, std::string_view format) const override |
| Parses an ISO 8601 date-time, or a bare date as midnight UTC. | |
| Public Member Functions inherited from morph::table::DateParser | |
| virtual std::shared_ptr< DateParser const > | cloneForTask () const |
| An instance for one task to use alone. | |
The default date parser: ISO 8601 only, whatever the format.
A date is YYYY-MM-DD. A date-time is what morph::time::DateTime::fromIso8601 reads, or a bare date, which is midnight UTC. Stateless and safe to call concurrently.
Definition at line 322 of file data_source.hpp.
|
inlinenodiscardoverridevirtual |
Parses YYYY-MM-DD.
| text | The text. |
| format | Ignored. |
Implements morph::table::DateParser.
Definition at line 329 of file data_source.hpp.
|
inlinenodiscardoverridevirtual |
Parses an ISO 8601 date-time, or a bare date as midnight UTC.
| text | The text. |
| format | Ignored. |
Implements morph::table::DateParser.
Definition at line 364 of file data_source.hpp.