remwharead
0.6.3
|
#include <string>
#include <chrono>
Go to the source code of this file.
Functions | |
const time_point | remwharead::string_to_timepoint (const string &strtime, bool sqlite=false) |
Convert ISO 8601 or SQLite time-string to time_point. More... | |
const string | remwharead::timepoint_to_string (const time_point &tp, bool sqlite=false) |
Convert time_point to ISO 8601 or SQLite time-string. More... | |
const 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? |
const 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? |