|
ORE Studio 0.0.4
|
Utilities for date and time operations. More...
#include <datetime.hpp>

Static Public Member Functions | |
| static std::string | format_time_point (const std::chrono::system_clock::time_point &tp, const std::string &format="%Y-%m-%d %H:%M:%S") |
| Formats a time point as a string using local time. | |
| static std::string | format_time_point_utc (const std::chrono::system_clock::time_point &tp, const std::string &format="%Y-%m-%d %H:%M:%S") |
| Formats a time point as a string using UTC time. | |
| static std::chrono::system_clock::time_point | parse_time_point (const std::string &str, const std::string &format="%Y-%m-%d %H:%M:%S") |
| Parses a string into a time point. | |
Utilities for date and time operations.
|
static |
Formats a time point as a string using local time.
| tp | Time point to format. |
| format | Format string (e.g., "%Y-%m-%d %H:%M:%S"). |

|
static |
Formats a time point as a string using UTC time.
| tp | Time point to format. |
| format | Format string (e.g., "%Y-%m-%d %H:%M:%S"). |

|
static |
Parses a string into a time point.
| str | String to parse. |
| format | Format string (e.g., "%Y-%m-%d %H:%M:%S"). |
| std::invalid_argument | if the string cannot be parsed. |