diff options
Diffstat (limited to 'datetime.h')
-rw-r--r-- | datetime.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -5,6 +5,19 @@ namespace ledger { +struct interval_t +{ + unsigned long years; + unsigned long months; + unsigned long seconds; + + interval_t(unsigned long _seconds, unsigned long _months, + unsigned long _years) + : years(_years), months(_months), seconds(_seconds) {} + + std::time_t increment(const std::time_t); +}; + extern bool parse_date_mask(const char * date_str, struct std::tm * result); extern bool parse_date(const char * date_str, std::time_t * result, |