redis3m  1.0.0
 All Classes Functions Variables Enumerations Pages
datetime.h
1 // Copyright (c) 2014 Luca Marturana. All rights reserved.
2 // Licensed under Apache 2.0, see LICENSE for details
3 
4 #pragma once
5 
6 #include <stdint.h>
7 #include <boost/date_time/posix_time/ptime.hpp>
8 
9 namespace redis3m
10 {
11 namespace datetime
12 {
13 
14 uint64_t utc_now_in_seconds();
15 uint64_t ptime_in_seconds(const boost::posix_time::ptime& time);
16 boost::posix_time::ptime now();
17 
18 }
19 }