Files
MuditaOS/module-utils/time/time_date_validation.hpp
kkleczkowski e4b7e9202e Egd 2507 settings date (#164)
* [EGD-2507] Wip on Date and Time window.

* [EGD-2507] Utlis, timeDateFormat in settings.db.

* [EGD-2507] - WiP on DateTimeWindow.

* [EGD-2507] dateTimeWindow layout + time validation + database_v2.md update.

* [EGD-2507] Code clean-up.

* [EGD-2507] Fixes after rebase, unused include removed.

* [ EGD-2507 ] PR suggestions.

* [ EGD-2507 ] Fixed missing 0 minutes, pr suggestions.

* [EGD-2507-settings-date] Fixes after rebase.
2020-03-05 14:32:06 +01:00

22 lines
530 B
C++

/*
* time_date_validation.hpp
*
* Created on: 31 sty 2020
* Author: kuba
*/
#pragma once
#include <string>
namespace utils
{
namespace time
{
bool validateDate(uint32_t day, uint32_t month, uint32_t year);
bool validateDate(std::string day, std::string month, std::string year);
bool validateTime(std::string hour, std::string minute, bool mode12h = false);
bool validateTime(uint32_t hour, uint32_t minute, bool mode12h = false);
} // namespace time
} // namespace utils