From d30891f4afd5ae028e6158e74d8a5ff18a1b15c8 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Thu, 5 Sep 2013 02:16:12 -0400 Subject: [PATCH] adding operators --- include/fc/time.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fc/time.hpp b/include/fc/time.hpp index 4d9bfc1..dd28bfc 100644 --- a/include/fc/time.hpp +++ b/include/fc/time.hpp @@ -76,6 +76,8 @@ namespace fc { } friend bool operator < ( const time_point_sec& a, const time_point_sec& b ) { return a.utc_seconds < b.utc_seconds; } friend bool operator > ( const time_point_sec& a, const time_point_sec& b ) { return a.utc_seconds > b.utc_seconds; } + friend bool operator <= ( const time_point_sec& a, const time_point_sec& b ) { return a.utc_seconds <= b.utc_seconds; } + friend bool operator >= ( const time_point_sec& a, const time_point_sec& b ) { return a.utc_seconds >= b.utc_seconds; } friend bool operator == ( const time_point_sec& a, const time_point_sec& b ) { return a.utc_seconds == b.utc_seconds; } time_point_sec& operator += ( uint32_t m ) { utc_seconds+=m; return *this; }