add datetime format.
This commit is contained in:
parent
bb351137cb
commit
7afe23379b
@ -34,6 +34,12 @@ public:
|
||||
|
||||
Week week() const;
|
||||
std::chrono::time_point<std::chrono::system_clock> operator()();
|
||||
|
||||
/**
|
||||
* @brief toString
|
||||
* @param format %Y%m%d%H%M%S 20240715171145
|
||||
* @return
|
||||
*/
|
||||
std::string toString(const std::string_view &format = "%F %T") const;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user