class date - 5cript/attender GitHub Wiki
class date
A date object used for date format conversion.
Summary
| Members | Descriptions |
|---|---|
public date(std::chrono::system_clock::time_point time_point) |
Creates a time date object from a specific time point. |
public date() |
Creates a time date object from "system_clock::now". |
public std::chrono::system_clock::time_point & get_time_point() |
Returns a reference to the contained time point. |
public std::string to_gmt_string() const |
Converts the contained time point to a time format representation specified in RFC 2616 Section 3.3.1. |
Members
public date(std::chrono::system_clock::time_point time_point)
Creates a time date object from a specific time point.
public date()
Creates a time date object from "system_clock::now".
public std::chrono::system_clock::time_point & get_time_point()
Returns a reference to the contained time point.
Meant to be modified using STL means and ways. No need to reimplement the stuff here.
public std::string to_gmt_string() const
Converts the contained time point to a time format representation specified in RFC 2616 Section 3.3.1.