Osmium  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes
Osmium::Utils::Timestamp Class Reference

#include <timestamp.hpp>

List of all members.

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

Detailed Description

Contains some helper functions to convert timestamps from time_t to the ISO format used by OSM and back.


Constructor & Destructor Documentation

Osmium::Utils::Timestamp::Timestamp ( ) [inline, private]

Constructor is private, this class is not supposed to be instantiated.


Member Function Documentation

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]

Member Data Documentation

const int Osmium::Utils::Timestamp::timestamp_length = 20 + 1 [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines