3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "support/lyxtime.h"
20 time_type current_time()
26 string const formatted_time(time_type t, string const & fmt)
28 struct tm * loc_tm = localtime(&t);
30 strftime(date, sizeof(date), fmt.c_str(), loc_tm);
35 string const formatted_time(time_type t)
37 return formatted_time(t, lyxrc.date_insert_format);