Files
MuditaOS/module-utils/time/TimeRangeParser.hpp
Tomas Rogala 80768bf4a5 [EGD-4708] Add backend of multiday events handling
-sql req for multiday events handling
-Add UT
-Add markEventsInDays method
-Add new query for day filter
2021-01-26 06:34:12 +01:00

29 lines
738 B
C++

// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include "Utils.hpp"
#include <module-apps/application-calendar/data/dateCommon.hpp>
namespace utils::time
{
enum class Version
{
abbrev,
normal
};
class TimeRangeParser
{
private:
std::string AMPMtoString(bool isAm);
public:
std::string getCalendarTimeString(TimePoint startDate,
TimePoint endDate,
Version version = Version::normal,
bool isMode24H = false);
};
} // namespace utils::time