mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 15:33:37 +00:00
17 lines
325 B
C++
17 lines
325 B
C++
#include "../Platform/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;
|
|
} |