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"
25 string const formatted_time(time_t t, string const & fmt)
27 struct tm * loc_tm = localtime(&t);
29 strftime(date, sizeof(date), fmt.c_str(), loc_tm);