summaryrefslogtreecommitdiff
path: root/datetime.h
diff options
context:
space:
mode:
Diffstat (limited to 'datetime.h')
-rw-r--r--datetime.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/datetime.h b/datetime.h
index 1acf2609..d546dbaa 100644
--- a/datetime.h
+++ b/datetime.h
@@ -3,6 +3,8 @@
#include "ledger.h"
+#include <ctime>
+
namespace ledger {
struct interval_t
@@ -20,6 +22,7 @@ struct interval_t
static interval_t * parse(std::istream& in);
};
+extern std::time_t now;
extern struct std::tm * now_tm;
bool parse_date_mask(const char * date_str, struct std::tm * result);