mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-24 05:47:58 -05:00
-sql req for multiday events handling -Add UT -Add markEventsInDays method -Add new query for day filter
29 lines
738 B
C++
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
|