the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 19 lines 295 B view raw
1#include "stdafx.h" 2#include "Calendar.h" 3#include <time.h> 4 5unsigned int Calendar::GetDayOfMonth() 6{ 7 time_t t = time(0); 8 struct tm *now = localtime(&t); 9 10 return now->tm_mday; 11} 12 13unsigned int Calendar::GetMonth() 14{ 15 time_t t = time(0); 16 struct tm *now = localtime(&t); 17 18 return now->tm_mon; 19}