4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Jürgen Spitzmüller
10 * Full author contact details are available in file CREDITS.
19 #include "support/strfwd.h"
25 time_t current_time();
27 /** Returns a locale-dependent formatting of the date
28 * and time encoded in \c time. The \p fmt string
29 * holds the formatting arguments of \c strftime.
30 * Prefer the function formatted_datetime below.
32 std::string const formatted_time(time_t t, std::string const & fmt);
34 /** Returns a locale-dependent formatting of the date and time encoded in \c t
35 * The \p fmt string holds the formatting arguments of QDateTime::toString().
36 * If fmt is empty then the formatting of the date and time is itself according
39 docstring formatted_datetime(time_t t, std::string const & fmt = "");
42 * Inverse of asctime(gmtime()).
44 time_t from_asctime_utc(std::string t);
46 } // namespace support