Files
DataStorage/include/Timespan.h
T
2020-05-01 11:03:00 +02:00

31 lines
475 B
C++

#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