mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-04 13:17:08 -04:00
* [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.
22 lines
530 B
C++
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
|