Files
2026-03-08 10:09:54 +01:00

19 lines
313 B
C++

#include "stdafx.h"
#include "Calendar.h"
#include <time.h>
unsigned int Calendar::GetDayOfMonth()
{
time_t t = time(0);
struct tm *now = localtime(&t);
return now->tm_mday;
}
unsigned int Calendar::GetMonth()
{
time_t t = time(0);
struct tm *now = localtime(&t);
return now->tm_mon;
}