![]() |
openPilotLog
|
The ADate class is responsible for input/output of Dates and handling the different Date Formats. More...
#include <adate.h>
Static Public Member Functions | |
static QDate | parseInput (QString &io_user_input, Opl::Date::ADateFormat format) |
takes a user-provided input and tries to convert it to a (valid) QDate. More... | |
static void | tryToFix (QString &io_user_input, Opl::Date::ADateFormat format) |
static void | padCentury (QString &io_user_input, Opl::Date::ADateFormat format) |
padCentury adds the century to a date where it was omitted | |
static void | padZeroes (QString &io_user_input) |
pads a user-provided date string with 0s to facilitate conversion to QDate | |
static void | addSeperators (QString &io_user_input, const Opl::Date::ADateFormat &format) |
static bool | containsSeperator (const QString &user_input) |
static QString | toString (const QDate &date, Opl::Date::ADateFormat format=Opl::Date::ADateFormat::ISODate) |
Reimplements QDate::toString to accept Opl::Date::ADateFormat enums. | |
static const QStringList & | getDisplayNames () |
static const QString | getFormatString (Opl::Date::ADateFormat format) |
The ADate class is responsible for input/output of Dates and handling the different Date Formats.
|
static |
takes a user-provided input and tries to convert it to a (valid) QDate.