PROJ C++ API
Public Member Functions | Static Public Member Functions | List of all members
osgeo::proj::common::DateTime Class Reference

Date-time value, as a ISO:8601 encoded string, or other string encoding. More...

#include <common.hpp>

Public Member Functions

bool isISO_8601 () const
 Return whether the DateTime is ISO:8601 compliant. More...
 
std::string toString () const
 Return the DateTime as a string.
 

Static Public Member Functions

static DateTime create (const std::string &str)
 Instanciate a DateTime.
 

Detailed Description

Date-time value, as a ISO:8601 encoded string, or other string encoding.

Member Function Documentation

bool osgeo::proj::common::DateTime::isISO_8601 ( ) const

Return whether the DateTime is ISO:8601 compliant.

Remarks
The current implementation is really simplistic, and aimed at detecting date-times that are not ISO:8601 compliant.

The documentation for this class was generated from the following files: