added time_point_sec(int32) constructor
This commit is contained in:
parent
b5eb86e24c
commit
bd66f1c5af
1 changed files with 3 additions and 0 deletions
|
|
@ -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 ){}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue