mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftConsoles-141217.git
synced 2026-10-22 13:22:18 +01:00
Initial commit
This commit is contained in:
commit
2dfcaaa842
5375 files changed
+978475
No files matched your search
@@ -0,0 +1,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;
|
||||
}
|
||||
Reference in new issue
Block a user