summaryrefslogtreecommitdiff
path: root/src/times.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/times.h')
-rw-r--r--src/times.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/times.h b/src/times.h
index 3ed3621d..eb58a97f 100644
--- a/src/times.h
+++ b/src/times.h
@@ -138,6 +138,7 @@ public:
const duration_t& duration);
optional<date_t> start;
+ bool aligned;
optional<duration_t> skip_duration;
std::size_t factor;
optional<date_t> next;
@@ -145,10 +146,10 @@ public:
optional<date_t> end_of_duration;
optional<date_t> end;
- explicit date_interval_t() : factor(1) {
+ explicit date_interval_t() : aligned(false), factor(1) {
TRACE_CTOR(date_interval_t, "");
}
- date_interval_t(const string& str) : factor(1) {
+ date_interval_t(const string& str) : aligned(false), factor(1) {
TRACE_CTOR(date_interval_t, "const string&");
parse(str);
}
@@ -182,6 +183,9 @@ public:
parse(in);
}
+ void resolve_end();
+ void stabilize(const optional<date_t>& date = none);
+
bool is_valid() const {
return start;
}