summaryrefslogtreecommitdiff
path: root/include/mbgl/util/time.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-11-04 06:44:50 -0800
committerKonstantin Käfer <mail@kkaefer.com>2014-11-04 06:44:50 -0800
commit75889d812402ac2b75d891576a1c37cb43c8eaf3 (patch)
tree8b69bc0cab37c694760169a3e35ec9cc6930a1c2 /include/mbgl/util/time.hpp
parentb6c10e44c08fb7cdb16f8be80fc29e8054eafc05 (diff)
downloadqtlocation-mapboxgl-75889d812402ac2b75d891576a1c37cb43c8eaf3.tar.gz
replace strftime_l with our custom formatter
Diffstat (limited to 'include/mbgl/util/time.hpp')
-rw-r--r--include/mbgl/util/time.hpp6
1 files changed, 6 insertions, 0 deletions
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 <string>
#include <cstdint>
+#include <ctime>
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