|
LibSWOC++ 1.5.14
Solid Wall of C++
|
#include <bwf_ex.h>

Public Member Functions | |
| Date (time_t t, std::string_view fmt=DEFAULT_FORMAT) | |
| Date (std::string_view fmt=DEFAULT_FORMAT) | |
| Default construct using current time with optional format. | |
Public Attributes | |
| time_t | _epoch |
| The time. | |
| std::string_view | _fmt |
| Data format. | |
Static Public Attributes | |
| static constexpr std::string_view | DEFAULT_FORMAT {"%Y %b %d %H:%M:%S"_sv} |
| Default format. | |
Format wrapper for time stamps. If the time isn't provided, the current epoch time is used. If the format string isn't provided a format like "2017 Jun 29 14:11:29" is used.
|
inline |
| swoc::bwf::Date::Date | ( | std::string_view | fmt = DEFAULT_FORMAT | ) |
Default construct using current time with optional format.
Definition at line 852 of file bw_format.cc.
|
staticconstexpr |