summaryrefslogtreecommitdiff
path: root/datetime.h
diff options
context:
space:
mode:
Diffstat (limited to 'datetime.h')
-rw-r--r--datetime.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/datetime.h b/datetime.h
index bc32032a..6f6ad1df 100644
--- a/datetime.h
+++ b/datetime.h
@@ -9,12 +9,11 @@ namespace ledger {
struct interval_t
{
- unsigned long years;
- unsigned long months;
- unsigned long seconds;
+ int years;
+ int months;
+ int seconds;
- interval_t(unsigned long _seconds, unsigned long _months = 0,
- unsigned long _years = 0)
+ interval_t(int _seconds, int _months = 0, int _years = 0)
: years(_years), months(_months), seconds(_seconds) {}
std::time_t increment(const std::time_t);
@@ -23,8 +22,8 @@ struct interval_t
std::time_t * end);
};
-extern std::time_t now;
-extern struct std::tm * now_tm;
+extern std::time_t now;
+extern int now_year;
bool parse_date_mask(const char * date_str, struct std::tm * result);