remwharead
0.8.4
|
#include <chrono>
#include <string>
Go to the source code of this file.
Functions | |
time_point | remwharead::string_to_timepoint (const string &strtime, bool sqlite=false) |
Convert ISO 8601 or SQLite time-string to time_point. More... | |
string | remwharead::timepoint_to_string (const time_point &tp, bool sqlite=false) |
Convert time_point to ISO 8601 or SQLite time-string. More... | |
time_point remwharead::string_to_timepoint | ( | const string & | strtime, |
bool | sqlite = false |
||
) |
Convert ISO 8601 or SQLite time-string to time_point.
The SQLite format is YY-MM-DD hh:mm:ss instead of YY-MM-DDThh:mm:ss.
strtime | Time string in ISO 8601 or SQLite format. |
sqlite | Is the string in SQLite format? |
string remwharead::timepoint_to_string | ( | const time_point & | tp, |
bool | sqlite = false |
||
) |
Convert time_point to ISO 8601 or SQLite time-string.
The SQLite format is YY-MM-DD hh:mm:ss instead of YY-MM-DDThh:mm:ss.
time_point | The std::chrono::system_clock::time_point. |
sqlite | Is the string in SQLite format? |