OKlibrary
0.2.1.6
|
Classes | |
class | SystemTime |
DEPRECATED (replaced by boost::timer): For elapsed system time in seconds since initialisation. More... | |
class | WallTime |
For elapsed wall time in (full) seconds since initialisation. More... | |
class | Progress |
Functions | |
std::string | currentDateTime () |
Returns a string with the current date and time (in the format given by the std::asctime from <ctime> (see C Standard 7.23.3.1)). | |
std::ostream & | currentDateTime (const std::string &format, std::ostream &out) |
As currentDateTime(), but using the format string as for the std::strftime function from <ctime> (see C Standard 7.23.3.5), and either admitting a std::ostream as argument, or returning a string and admitting a locale object as optional argument (with the system-default locale as default). | |
std::string | currentDateTime (const std::string &format, const std::locale &loc=std::locale("")) |
std::string | output_seconds (double s) |
Returns the number s of seconds represented as seconds (s), minutes (m), hours (h), days (d) or years (y) |
std::string TimeHandling::currentDateTime | ( | ) | [inline] |
Returns a string with the current date and time (in the format given by the std::asctime from <ctime> (see C Standard 7.23.3.1)).
Definition at line 157 of file TimeHandling.hpp.
Referenced by currentDateTime(), CgiHandling::Submission::error_handling(), main(), OKlib::Messages::Utilities::TimeDateStandardImplementation::print(), emailHandling::SendWaitingEmails::send(), and CgiHandling::Submission::Submission().
std::ostream & TimeHandling::currentDateTime | ( | const std::string & | format, |
std::ostream & | out | ||
) | [inline] |
As currentDateTime(), but using the format string as for the std::strftime function from <ctime> (see C Standard 7.23.3.5), and either admitting a std::ostream as argument, or returning a string and admitting a locale object as optional argument (with the system-default locale as default).
Definition at line 162 of file TimeHandling.hpp.
std::string TimeHandling::currentDateTime | ( | const std::string & | format, |
const std::locale & | loc = std::locale("") |
||
) | [inline] |
Definition at line 170 of file TimeHandling.hpp.
References currentDateTime().
std::string TimeHandling::output_seconds | ( | double | s | ) | [inline] |
Returns the number s of seconds represented as seconds (s), minutes (m), hours (h), days (d) or years (y)
Definition at line 179 of file TimeHandling.hpp.
References StringHandling::toString().
Referenced by TimeHandling::Progress::operator()(), and ExperimentUebertragung::transfer().