diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-14 04:13:49 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-14 04:14:02 -0400 |
commit | 2bff7565c1762202c7c01bf7cb50bd9ce351031a (patch) | |
tree | d2d85886e2065d640adde88e1eebd816c41cefa1 /src/times.h | |
parent | ad02a482b6ee5bfd273acaa8730eb741b50f37f6 (diff) | |
download | fork-ledger-2bff7565c1762202c7c01bf7cb50bd9ce351031a.tar.gz fork-ledger-2bff7565c1762202c7c01bf7cb50bd9ce351031a.tar.bz2 fork-ledger-2bff7565c1762202c7c01bf7cb50bd9ce351031a.zip |
Changed interval_t::start to interval_t::set_start, to be more clear about how
it differs from interval_t::first.
Diffstat (limited to 'src/times.h')
-rw-r--r-- | src/times.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/times.h b/src/times.h index 7e9d7ac0..6abd2109 100644 --- a/src/times.h +++ b/src/times.h @@ -140,9 +140,10 @@ struct interval_t return years != 0 || months != 0 || days != 0; } - void start(const date_t& moment) { - begin = first(moment); + void set_start(const date_t& moment) { + begin = moment; } + date_t first(const optional<date_t>& moment = none) const; date_t increment(const date_t&) const; |