ultimatepp/uppdev/FirstDay/FirstDay.cpp
cxl 2e4b276e07 Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-04 08:34:39 +00:00

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);
}
}