]> git.lyx.org Git - lyx.git/blob - src/support/date.C
make doc++ able to generate the source documentation for lyx
[lyx.git] / src / support / date.C
1 #include <config.h>
2
3 #include <time.h>
4
5 #include "support/lyxlib.h"
6
7 char * lyx::date()
8 {
9         time_t tid;
10         if ((tid = ::time(0)) == static_cast<time_t>(-1))
11                 return 0;
12         else
13                 return ::ctime(&tid);
14 }