From 748a9b52a5f2afe0751cb33325e45f4046eb9cc3 Mon Sep 17 00:00:00 2001 From: Vikram Rajkumar Date: Tue, 1 Jul 2014 13:38:24 -0400 Subject: [PATCH] Add time_point_sec::-( uint32_t ) --- include/fc/time.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fc/time.hpp b/include/fc/time.hpp index 2c12ef0..ae0d48d 100644 --- a/include/fc/time.hpp +++ b/include/fc/time.hpp @@ -103,6 +103,7 @@ namespace fc { time_point_sec& operator += ( uint32_t m ) { utc_seconds+=m; return *this; } time_point_sec& operator -= ( uint32_t m ) { utc_seconds-=m; return *this; } time_point_sec operator +( uint32_t offset )const { return time_point_sec(utc_seconds + offset); } + time_point_sec operator -( uint32_t offset )const { return time_point_sec(utc_seconds - offset); } friend time_point operator - ( const time_point_sec& t, const microseconds& m ) { return time_point(t) - m; } friend microseconds operator - ( const time_point_sec& t, const time_point_sec& m ) { return time_point(t) - time_point(m); }