diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-18 23:50:25 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:35:37 -0400 |
commit | ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e (patch) | |
tree | 02bfb4221cf9b73bd57cf6df2abae58f3b365c0b /balance.h | |
parent | 4c460a1c40cfb1547ce9a4c91b4e8a87d768463d (diff) | |
download | ledger-ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e.tar.gz ledger-ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e.tar.bz2 ledger-ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e.zip |
Initial round of changes to use boost_date_time
Diffstat (limited to 'balance.h')
-rw-r--r-- | balance.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -430,9 +430,9 @@ class balance_t amount_t amount(const commodity_t& commodity = *commodity_t::null_commodity) const; - balance_t value(const datetime_t& moment = datetime_t::now) const; + balance_t value(const ptime& moment = now) const; balance_t price() const; - datetime_t date() const; + ptime date() const; balance_t strip_annotations(const bool keep_price = amount_t::keep_price, @@ -880,13 +880,13 @@ class balance_pair_t *commodity_t::null_commodity) const { return quantity.amount(commodity); } - balance_t value(const datetime_t& moment = datetime_t::now) const { + balance_t value(const ptime& moment = now) const { return quantity.value(moment); } balance_t price() const { return quantity.price(); } - datetime_t date() const { + ptime date() const { return quantity.date(); } |