reactos/reactos/tools/getdate.c
Timo Kreuzer fae2044a23 [CMAKE]
Integrate cmake stuff into trunk
Only files added.

svn path=/trunk/; revision=51783
2011-05-16 13:12:07 +00:00

14 lines
229 B
C

#include <stdio.h>
#include <time.h>
void main()
{
char curdate[9];
time_t now;
struct tm *tm_now;
time(&now);
tm_now=localtime(&now);
strftime(curdate, sizeof(curdate), "%Y%m%d", tm_now);
printf("%s", curdate);
}