mastodon-cpp
0.101.1
|
Type for time. Converts to time_point and string. More...
#include <types_easy.hpp>
Public Member Functions | |
operator const system_clock::time_point () const | |
operator const string () const | |
Returns local time as string in ISO 8601 format (FTTz). More... | |
const string | strtime (const string &format, const bool &local=true) const |
Converts time to a string. More... | |
Public Attributes | |
system_clock::time_point | timepoint = system_clock::time_point() |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Easy::time &t) |
Returns local time as string in ISO 8601 format (FTTz). More... | |
Type for time. Converts to time_point and string.
Easy::time::operator const string | ( | ) | const |
Returns local time as string in ISO 8601 format (FTTz).
const string Easy::time::strtime | ( | const string & | format, |
const bool & | local = true |
||
) | const |
Converts time to a string.
The return value can not exceed 1023 chars.
format | The format of the string, same as with strftime . |
local | Use local time (default) or UTC. |
Example:
|
friend |
Returns local time as string in ISO 8601 format (FTTz).