|
KiCad PCB EDA Suite
|
Static Public Member Functions | |
| static auto | DaysToYmd (int aDaysSinceEpoch) -> std::tuple< int, int, int > |
| static auto | YmdToDays (int aYear, int aMonth, int aDay) -> int |
| static std::optional< int > | ParseDate (const std::string &aDateStr) |
| static auto | FormatDate (int aDaysSinceEpoch, const std::string &aFormat) -> std::string |
| static auto | GetWeekdayName (int aDaysSinceEpoch) -> std::string |
| static auto | GetCurrentDays () -> int |
| static auto | GetCurrentTimestamp () -> double |
| static auto | FormatTime (double aSecondsSinceEpoch, const std::string &aFormat) -> std::string |
Static Private Member Functions | |
| static auto | isLeapYear (int aYear) -> bool |
| static auto | daysInYear (int aYear) -> int |
| static auto | daysInMonthForYear (int aMonth, int aYear) -> int |
Static Private Attributes | |
| static constexpr int | epochYear = 1970 |
| static constexpr std::array< int, 12 > | daysInMonth = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } |
| static constexpr std::array< const char *, 12 > | monthNames |
| static constexpr std::array< const char *, 12 > | monthAbbrev |
| static constexpr std::array< const char *, 7 > | weekdayNames |
Definition at line 34 of file text_eval_parser.cpp.
|
inlinestaticprivate |
Definition at line 54 of file text_eval_parser.cpp.
References daysInMonth, and isLeapYear().
Referenced by DaysToYmd(), ParseDate(), and YmdToDays().
|
inlinestaticprivate |
Definition at line 52 of file text_eval_parser.cpp.
References isLeapYear().
Referenced by DaysToYmd(), and YmdToDays().
|
inlinestatic |
Definition at line 63 of file text_eval_parser.cpp.
References daysInMonthForYear(), daysInYear(), and epochYear.
Referenced by FormatDate().
|
inlinestatic |
Definition at line 272 of file text_eval_parser.cpp.
References DaysToYmd(), monthAbbrev, and monthNames.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inlinestatic |
Definition at line 321 of file text_eval_parser.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inlinestatic |
Definition at line 309 of file text_eval_parser.cpp.
References TEXT_EVAL::ENVIRONMENT::CurrentTime().
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inlinestatic |
Definition at line 315 of file text_eval_parser.cpp.
References TEXT_EVAL::ENVIRONMENT::CurrentTime().
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inlinestatic |
Definition at line 299 of file text_eval_parser.cpp.
References weekdayNames.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inlinestaticprivate |
Definition at line 47 of file text_eval_parser.cpp.
Referenced by daysInMonthForYear(), and daysInYear().
|
inlinestatic |
Definition at line 118 of file text_eval_parser.cpp.
References daysInMonthForYear(), and YmdToDays().
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inlinestatic |
Definition at line 96 of file text_eval_parser.cpp.
References daysInMonthForYear(), daysInYear(), and epochYear.
Referenced by ParseDate().
|
staticconstexprprivate |
Definition at line 38 of file text_eval_parser.cpp.
Referenced by daysInMonthForYear().
|
staticconstexprprivate |
Definition at line 37 of file text_eval_parser.cpp.
Referenced by DaysToYmd(), and YmdToDays().
|
staticconstexprprivate |
Definition at line 42 of file text_eval_parser.cpp.
Referenced by FormatDate().
|
staticconstexprprivate |
Definition at line 39 of file text_eval_parser.cpp.
Referenced by FormatDate().
|
staticconstexprprivate |
Definition at line 44 of file text_eval_parser.cpp.
Referenced by GetWeekdayName().