blob: 181c961ab2a5a0b9cb393f87acc276e92bedaac9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef MBGL_UTIL_TIME
#define MBGL_UTIL_TIME
#include <mbgl/util/chrono.hpp>
#include <string>
#include <cstdint>
#include <ctime>
namespace mbgl {
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);
} // namespace util
} // namespace mbgl
#endif
|