ultimatepp/upptst/DateTime/DateTime.cpp
cxl 8d8447d20a .upptst: JsonDATE, DateTime
git-svn-id: svn://ultimatepp.org/upp/trunk@6396 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2013-10-06 11:06:22 +00:00

14 lines
315 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN {
StdLogSetup(LOG_FILE|LOG_COUT);
for(int i = 0; i < 30000; i++) {
Date d = Date(1970, 1, 1) + i;
int64 n = GetUTCSeconds(ToTime(d));
// DLOG(d << ' ' << GetLeapSeconds(d) << ' ' << n);
ASSERT(TimeFromUTC(n) == ToTime(d));
}
}