|
| static time_t | MakeTime (int year, int month, int day, int hour=0) |
| |
| static uint32_t | PackAnchor (int year, int month, int day, int hour, int minute) |
| |
◆ MakeTime()
| static time_t FindLoopingStartTimeTest::MakeTime |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day, |
|
|
int |
hour = 0 |
|
) |
| |
|
inlinestaticprotected |
1440 {
1441 std::tm t = {};
1442 t.tm_year = year - 1900;
1443 t.tm_mon = month - 1;
1444 t.tm_mday = day;
1445 t.tm_hour = hour;
1446 t.tm_isdst = -1;
1447 return mktime(&t);
1448 }
◆ PackAnchor()
| static uint32_t FindLoopingStartTimeTest::PackAnchor |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day, |
|
|
int |
hour, |
|
|
int |
minute |
|
) |
| |
|
inlinestaticprotected |
1451 {
1452 uint32_t packed = 0;
1453 packed |= (static_cast<uint32_t>(year - 2000) & 0x1F) << 24;
1454 packed |= (static_cast<uint32_t>(month - 1) & 0xF) << 20;
1455 packed |= (static_cast<uint32_t>(day - 1) & 0x3F) << 14;
1456 packed |= (static_cast<uint32_t>(hour) & 0x1F) << 6;
1457 packed |= (static_cast<uint32_t>(minute) & 0x3F);
1458 return packed;
1459 }
◆ OCCURENCE_MIN
| constexpr uint32_t FindLoopingStartTimeTest::OCCURENCE_MIN = 60480 |
|
staticconstexprprotected |
The documentation for this class was generated from the following file: