Initial commit

This commit is contained in:
2020-05-01 11:03:00 +02:00
commit 3a12256d49
16 changed files with 278 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#ifndef TIMESPAN_H
#define TIMESPAN_H
#include <string>
namespace DataStorage {
struct Timespan
{
enum type
{
Day = 24 * 60 * 60,
Week = 7 * 24 * 60 * 60,
Month = 31 * 24 * 60 * 60,
Year = 365 * 24 * 60 * 60,
Unknown
};
};
namespace Conversions {
Timespan::type Timespan(const std::string& timespan);
std::string Timespan(Timespan::type timespan);
} // namespace Conversions
} // namespace DataStorage
#endif // TIMESPAN_H