mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 22:02:49 -06:00
15 lines
303 B
C++
15 lines
303 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
for(int i = 0; i < 200; i++) {
|
|
Date d = GetSysDate() + i;
|
|
int q = DayOfWeek(d);
|
|
int n = (d.day - 1) / 7;
|
|
bool even = ((d - Date::Low() - 1) / 7) & 1;
|
|
LOG(d << " " << DayName(q) << " " << n << ' ' << even);
|
|
}
|
|
}
|
|
|