From 75889d812402ac2b75d891576a1c37cb43c8eaf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 4 Nov 2014 06:44:50 -0800 Subject: replace strftime_l with our custom formatter --- include/mbgl/util/time.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/mbgl/util/time.hpp') diff --git a/include/mbgl/util/time.hpp b/include/mbgl/util/time.hpp index 9d61edf75e..e8afbeff6d 100644 --- a/include/mbgl/util/time.hpp +++ b/include/mbgl/util/time.hpp @@ -1,7 +1,9 @@ #ifndef MBGL_UTIL_TIME #define MBGL_UTIL_TIME +#include #include +#include namespace mbgl { @@ -15,6 +17,10 @@ namespace util { // comparisons between different timestamps produce meaningful values. timestamp now(); + +// Returns the RFC1123 formatted date. E.g. "Tue, 04 Nov 2014 02:13:24 GMT" +std::string rfc1123(std::time_t time); + } // used for time conversions -- cgit v1.2.1