From 1fd4387b678782f2ed90484d36f8980b64d58aa3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 18 Jun 2009 01:48:01 +0100 Subject: Restored pricesdb command and --pricesdb-format option --- src/post.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/post.cc') diff --git a/src/post.cc b/src/post.cc index 3a0f3cc4..8eccf03d 100644 --- a/src/post.cc +++ b/src/post.cc @@ -244,6 +244,10 @@ namespace { return long(post.reported_account()->depth); } + value_t get_datetime(post_t& post) { + return post.xdata().datetime; + } + template value_t get_wrapper(call_scope_t& scope) { return (*Func)(find_scope(scope)); @@ -282,6 +286,8 @@ expr_t::ptr_op_t post_t::lookup(const string& name) case 'd': if (name == "depth") return WRAP_FUNCTOR(get_wrapper<&get_account_depth>); + else if (name == "datetime") + return WRAP_FUNCTOR(get_wrapper<&get_datetime>); break; case 'h': -- cgit v1.2.3