diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-10 18:38:52 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-10 18:38:52 -0400 |
commit | e1d6c4bff27f41fbe57738205ba3548554380a73 (patch) | |
tree | 270da6408bfdbbc10787e6ca1439aa715d7a6fbe /valexpr.cc | |
parent | e414123ecb472d1f86a2f1cfdbd2732144c20f0d (diff) | |
download | fork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.tar.gz fork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.tar.bz2 fork-ledger-e1d6c4bff27f41fbe57738205ba3548554380a73.zip |
interval_t objects now play nicely with python. see the bottom of main.py
Diffstat (limited to 'valexpr.cc')
-rw-r--r-- | valexpr.cc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -512,9 +512,8 @@ value_expr_t * parse_value_term(std::istream& in) node.reset(new value_expr_t(value_expr_t::CONSTANT_T)); - std::string datespec = buf; - std::istringstream stream(datespec); - interval_t::parse(stream, &node->constant_t, NULL); + interval_t timespan(buf); + node->constant_t = timespan.first(); break; } |