roar
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Roar::date Class Reference

#include <date.hpp>

Collaboration diagram for Roar::date:

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_
 

Detailed Description

A date object used for date format conversion.

Constructor & Destructor Documentation

◆ date() [1/2]

Roar::date::date ( std::chrono::system_clock::time_point  time_point)

Creates a time date object from a specific time point.

◆ date() [2/2]

Roar::date::date ( )

Creates a time date object from "system_clock::now".

Member Function Documentation

◆ getTimePoint()

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.

◆ toGmtString()

std::string Roar::date::toGmtString ( ) const

Converts the contained time point to a time format representation specified in RFC 2616 Section 3.3.1.

Member Data Documentation

◆ timePoint_

std::chrono::system_clock::time_point Roar::date::timePoint_
private

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