|
| 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 |
1249 {
1250 std::tm t = {};
1251 t.tm_year = year - 1900;
1252 t.tm_mon = month - 1;
1253 t.tm_mday = day;
1254 t.tm_hour = hour;
1255 t.tm_isdst = -1;
1256 return mktime(&t);
1257 }
◆ PackTwoDates()
| void FindStartTimeForStageTest::PackTwoDates |
( |
uint32_t * |
dates, |
|
|
int |
y1, |
|
|
int |
m1, |
|
|
int |
d1, |
|
|
int |
y2, |
|
|
int |
m2, |
|
|
int |
d2 |
|
) |
| |
|
inlineprotected |
1261 {
1262 std::tm t1 = {};
1263 t1.tm_year = y1 - 1900;
1264 t1.tm_mon = m1 - 1;
1265 t1.tm_mday = d1;
1266 t1.tm_isdst = -1;
1267 mktime(&t1);
1269
1270 std::tm t2 = {};
1271 t2.tm_year = y2 - 1900;
1272 t2.tm_mon = m2 - 1;
1273 t2.tm_mday = d2;
1274 t2.tm_isdst = -1;
1275 mktime(&t2);
1277
1278 for (int i = 2; i < 26; ++i)
1279 dates[i] = 0;
1280 }
static uint32_t PackDate(const std::tm &date)
Definition HolidayDateCalculator.cpp:508
References HolidayDateCalculator::PackDate().
The documentation for this class was generated from the following file: