11 lines
142 B
C
11 lines
142 B
C
#include "util.h"
|
|
#include <time.h>
|
|
|
|
int getyear()
|
|
{
|
|
time_t now = time(NULL);
|
|
struct tm *t = localtime(&now);
|
|
|
|
return t->tm_year + 1900;
|
|
}
|