Function format_time

Synopsis

#include "breeze/time/format_time.hpp"

maybe< std::string > format_time(std::string const &format, time_kind=time_kind::utc, std::time_t time_stamp=std::time(nullptr))

Description

Returns
The time corresponding to time_stamp, formatted according to format. format is interpreted as if passed to the strftime() standard function.
See
time_kind.
This is a simple tool for simple and quick formatting needs. You should use a more complete solution for more complex needs (but don't underestimate the good old strftime() ;-)).
Note
This function is thread-safe and reentrant.

Source

Line 92 in breeze/time/format_time.hpp.