summaryrefslogtreecommitdiff
path: root/datetime.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-17 18:19:25 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-17 18:19:25 -0400
commitfadab59e87f7a4789e904f8bda73ed26fbbfd9a8 (patch)
tree22b5c5d177386f2f272135adadf7d02e3e7eb7c5 /datetime.h
parentde39574e89cc72aef157d10d451fac1f78af37c6 (diff)
downloadfork-ledger-fadab59e87f7a4789e904f8bda73ed26fbbfd9a8.tar.gz
fork-ledger-fadab59e87f7a4789e904f8bda73ed26fbbfd9a8.tar.bz2
fork-ledger-fadab59e87f7a4789e904f8bda73ed26fbbfd9a8.zip
changes to value expressions, and to how the display predicate is computed
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);