|
| void | PackTwoDates (uint32_t *dates, int y1, int m1, int d1, int y2, int m2, int d2) |
| |
|
| static time_t | MakeTime (int year, int month, int day, int hour=0) |
| |
◆ MakeTime()
| static time_t FindStartTimeForStageTest::MakeTime |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day, |
|
|
int |
hour = 0 |
|
) |
| |
|
inlinestaticprotected |
1288 {
1289 std::tm t = {};
1290 t.tm_year = year - 1900;
1291 t.tm_mon = month - 1;
1292 t.tm_mday = day;
1293 t.tm_hour = hour;
1294 t.tm_isdst = -1;
1295 return mktime(&t);
1296 }
◆ PackTwoDates()
| void FindStartTimeForStageTest::PackTwoDates |
( |
uint32_t * |
dates, |
|
|
int |
y1, |
|
|
int |
m1, |
|
|
int |
d1, |
|
|
int |
y2, |
|
|
int |
m2, |
|
|
int |
d2 |
|
) |
| |
|
inlineprotected |
1300 {
1301 std::tm t1 = {};
1302 t1.tm_year = y1 - 1900;
1303 t1.tm_mon = m1 - 1;
1304 t1.tm_mday = d1;
1305 t1.tm_isdst = -1;
1306 mktime(&t1);
1308
1309 std::tm t2 = {};
1310 t2.tm_year = y2 - 1900;
1311 t2.tm_mon = m2 - 1;
1312 t2.tm_mday = d2;
1313 t2.tm_isdst = -1;
1314 mktime(&t2);
1316
1317 for (int i = 2; i < 26; ++i)
1318 dates[i] = 0;
1319 }
static uint32_t PackDate(std::tm const &date)
Definition HolidayDateCalculator.cpp:575
References HolidayDateCalculator::PackDate().
The documentation for this class was generated from the following file: