summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2015-11-25 16:01:08 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2015-11-27 17:47:02 +0200
commit044e92f5e8ff2049702aa9ff6bbf4eecf9d86fa7 (patch)
treecefa84bba5f90291678f8f44acc70e0ecf8a0cdc /include
parent591e0dde2fb97f4d40db6e11b5fbfbe4c3c0efc8 (diff)
downloadqtlocation-mapboxgl-044e92f5e8ff2049702aa9ff6bbf4eecf9d86fa7.tar.gz
[core] Display modify, expires debug information
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/util/time.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mbgl/util/time.hpp b/include/mbgl/util/time.hpp
index c2e931b10b..ec8dafa45e 100644
--- a/include/mbgl/util/time.hpp
+++ b/include/mbgl/util/time.hpp
@@ -1,6 +1,8 @@
#ifndef MBGL_UTIL_TIME
#define MBGL_UTIL_TIME
+#include <mbgl/util/chrono.hpp>
+
#include <string>
#include <cstdint>
#include <ctime>
@@ -12,6 +14,9 @@ namespace util {
// Returns the RFC1123 formatted date. E.g. "Tue, 04 Nov 2014 02:13:24 GMT"
std::string rfc1123(std::time_t time);
+// YYYY-mm-dd HH:MM:SS e.g. "2015-11-26 16:11:23"
+std::string iso8601(std::time_t time);
+
}
}