2003-02-08 19:18:01 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file lyxtime.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author John Levon
|
2005-07-05 09:01:52 +00:00
|
|
|
|
* \author J<EFBFBD>rgen Spitzm<EFBFBD>ller
|
2003-02-08 19:18:01 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-02-08 19:18:01 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef LYXTIME_H
|
|
|
|
|
#define LYXTIME_H
|
|
|
|
|
|
|
|
|
|
#include <time.h>
|
2005-07-05 09:01:52 +00:00
|
|
|
|
#include <string>
|
|
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
2007-11-29 08:55:43 +00:00
|
|
|
|
time_t current_time();
|
2003-02-08 19:18:01 +00:00
|
|
|
|
|
2005-07-05 09:01:52 +00:00
|
|
|
|
/** Returns a locale-dependent formatting of the date
|
|
|
|
|
* <EFBFBD>and time encoded in \c time. The \p fmt string
|
|
|
|
|
* holds the formatting arguments of \c strftime.
|
|
|
|
|
*/
|
2007-11-29 08:55:43 +00:00
|
|
|
|
std::string const formatted_time(time_t t, std::string const & fmt);
|
2005-07-05 09:01:52 +00:00
|
|
|
|
|
2003-02-08 19:18:01 +00:00
|
|
|
|
}; // namespace lyx
|
|
|
|
|
|
|
|
|
|
#endif // LYXTIME_H
|