]> git.lyx.org Git - lyx.git/blob - src/support/lyxtime.h
Fix import of latex documents with scaled fonts.
[lyx.git] / src / support / lyxtime.h
1 // -*- C++ -*-
2 /**
3  * \file lyxtime.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Jürgen Spitzmüller
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef LYXTIME_H
14 #define LYXTIME_H
15
16 #include <time.h>
17 #include <string>
18
19
20 namespace lyx {
21 namespace support {
22
23 time_t current_time();
24
25 /** Returns a locale-dependent formatting of the date
26  *  and time encoded in \c time. The \p fmt string
27  *  holds the formatting arguments of \c strftime.
28  */
29 std::string const formatted_time(time_t t, std::string const & fmt);
30
31 /**
32  * Inverse of asctime(gmtime()).
33  */
34 time_t from_asctime_utc(std::string t);
35
36 } // namespace support
37 } // namespace lyx
38
39 #endif // LYXTIME_H