roar
|
#include <date.hpp>
Public Member Functions | |
date (std::chrono::system_clock::time_point time_point) | |
date () | |
std::chrono::system_clock::time_point & | getTimePoint () |
std::string | toGmtString () const |
Private Attributes | |
std::chrono::system_clock::time_point | timePoint_ |
A date object used for date format conversion.
Roar::date::date | ( | std::chrono::system_clock::time_point | time_point | ) |
Creates a time date object from a specific time point.
Roar::date::date | ( | ) |
Creates a time date object from "system_clock::now".
std::chrono::system_clock::time_point & Roar::date::getTimePoint | ( | ) |
Returns a reference to the contained time point. Meant to be modified using STL means and ways. No need to reimplement the stuff here.
std::string Roar::date::toGmtString | ( | ) | const |
Converts the contained time point to a time format representation specified in RFC 2616 Section 3.3.1.
|
private |