about summary refs log tree commit diff stats
path: root/src/util.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-08-05 15:58:14 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-08-05 15:58:14 -0400
commitb7bb942cadfe3d657895af1557b78acc2559947e (patch)
tree66ec390ba1b30c4d3012c3ec3526f9489c41d8f9 /src/util.h
parent204181c5654cee745b6b1ba98675609e784f0ee1 (diff)
downloadlibtwittercpp-b7bb942cadfe3d657895af1557b78acc2559947e.tar.gz
libtwittercpp-b7bb942cadfe3d657895af1557b78acc2559947e.tar.bz2
libtwittercpp-b7bb942cadfe3d657895af1557b78acc2559947e.zip
Tweets store their created time
C/C++ time handling is awful, pass it on
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index 8cbe054..b950728 100644 --- a/src/util.h +++ b/src/util.h
@@ -4,6 +4,7 @@
4#include <string> 4#include <string>
5#include <sstream> 5#include <sstream>
6#include <memory> 6#include <memory>
7#include <ctime>
7 8
8namespace twitter { 9namespace twitter {
9 10
@@ -25,6 +26,8 @@ namespace twitter {
25 return result.str(); 26 return result.str();
26 } 27 }
27 28
29 time_t timegm(struct tm * t);
30
28}; 31};
29 32
30#endif /* end of include guard: UTIL_H_440DEAA0 */ 33#endif /* end of include guard: UTIL_H_440DEAA0 */