Files
yait/util.c
2025-11-11 21:49:23 -05:00

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;
}