aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Calendar.cpp
blob: e6d8d6446633ec639d7e90d841b58eadb64ff48e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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;
}