mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-26 04:34:41 +00:00
* Remove stdafx.h and some <unordered_set> includes * Update Minecraft Server Defines and remove more unused folders/files * Unbloat stdafx.h from Minecraft.World
18 lines
275 B
C++
18 lines
275 B
C++
#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;
|
|
} |