4.6.0
Freundlich's C++ toolkit
|
Time query and formatting utilities.
Functions | |
FCPPT_DETAIL_SYMBOL std::tm | fcppt::time::gmtime (std::time_t time) |
A wrapper around std::gmtime . | |
FCPPT_DETAIL_SYMBOL std::tm | fcppt::time::localtime (std::time_t time) |
A wrapper around std::localtime . | |
template<typename Ch , typename Traits > | |
void | fcppt::time::output_tm (std::basic_ostream< Ch, Traits > &_stream, std::tm const &_tm) |
Outputs a std::tm to a stream. | |
FCPPT_DETAIL_SYMBOL std::time_t | fcppt::time::std_time () |
A wrapper around std::time . | |
FCPPT_DETAIL_SYMBOL std::tm fcppt::time::gmtime | ( | std::time_t | time | ) |
A wrapper around std::gmtime
.
Converts time to an std::tm
using std::gmtime
.
<code>std::runtime_error</code> | on failure. |
FCPPT_DETAIL_SYMBOL std::tm fcppt::time::localtime | ( | std::time_t | time | ) |
A wrapper around std::localtime
.
Converts time to an std::tm
using std::localtime
.
<code>std::runtime_error</code> | on failure. |
void fcppt::time::output_tm | ( | std::basic_ostream< Ch, Traits > & | _stream, |
std::tm const & | _tm ) |
Outputs a std::tm
to a stream.
Outputs tm to stream using the std::time_put
locale facet, obtained from the locale of stream. Example:
FCPPT_DETAIL_SYMBOL std::time_t fcppt::time::std_time | ( | ) |
A wrapper around std::time
.
A wrapper around std::time
, returning the current time.
<code>std::runtime_error</code> | on failure. |