diff options
Diffstat (limited to 'src/local_time.cc')
| -rw-r--r-- | src/local_time.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/local_time.cc b/src/local_time.cc index 659d5c82..0f87bb49 100644 --- a/src/local_time.cc +++ b/src/local_time.cc @@ -309,6 +309,14 @@ LocalTime::operator< (LocalTime const & other) const bool +LocalTime::operator<=(LocalTime const& other) const +{ + return *this < other || *this == other; +} + + + +bool LocalTime::operator>(LocalTime const & other) const { auto a = as_utc(); @@ -337,6 +345,13 @@ LocalTime::operator>(LocalTime const & other) const bool +LocalTime::operator>=(LocalTime const& other) const +{ + return *this > other || *this == other; +} + + +bool LocalTime::operator!= (LocalTime const & other) const { return !(*this == other); |
