From bd66f1c5affd5f153cb546e4d5de4cd74e8a41fd Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Thu, 8 Aug 2013 09:49:49 -0400 Subject: [PATCH] added time_point_sec(int32) constructor --- include/fc/time.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fc/time.hpp b/include/fc/time.hpp index ffb6a9d..6df8e8d 100644 --- a/include/fc/time.hpp +++ b/include/fc/time.hpp @@ -60,6 +60,9 @@ namespace fc { time_point_sec() :utc_seconds(0){} + explicit time_point_sec(uint32_t seconds ) + :utc_seconds(seconds){} + time_point_sec( const time_point& t ) :utc_seconds( t.time_since_epoch().count() / 1000000ll ){}