#ifndef TIMESPAN_H #define TIMESPAN_H #include 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, _2_Year = 2 * 365 * 24 * 60 * 60, _5_Year = 5 * 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