Osmium
0.1
|
#include <timestamp.hpp>
Static Public Member Functions | |
static std::string | to_iso (time_t timestamp) |
static time_t | parse_iso (const char *timestamp) |
Private Member Functions | |
Timestamp () | |
Constructor is private, this class is not supposed to be instantiated. | |
Static Private Member Functions | |
static const char * | timestamp_format () |
Static Private Attributes | |
static const int | timestamp_length = 20 + 1 |
Contains some helper functions to convert timestamps from time_t to the ISO format used by OSM and back.
Osmium::Utils::Timestamp::Timestamp | ( | ) | [inline, private] |
Constructor is private, this class is not supposed to be instantiated.
static time_t Osmium::Utils::Timestamp::parse_iso | ( | const char * | timestamp | ) | [inline, static] |
static const char* Osmium::Utils::Timestamp::timestamp_format | ( | ) | [inline, static, private] |
The timestamp format for OSM timestamps in strftime(3) format. This is the ISO-Format yyyy-mm-ddThh:mm:ssZ
static std::string Osmium::Utils::Timestamp::to_iso | ( | time_t | timestamp | ) | [inline, static] |
const int Osmium::Utils::Timestamp::timestamp_length = 20 + 1 [static, private] |