Initial commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user