summaryrefslogtreecommitdiff
path: root/src/times.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/times.h')
-rw-r--r--src/times.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/times.h b/src/times.h
index 39945824..a2680ae3 100644
--- a/src/times.h
+++ b/src/times.h
@@ -553,6 +553,10 @@ public:
return (start == other.start &&
(! start || *start == *other.start));
}
+ bool operator<(const date_interval_t& other) const {
+ return (start == other.start &&
+ (! start || *start < *other.start));
+ }
operator bool() const {
return is_valid();