| 85 | } |
| 86 | |
| 87 | time_t MemoryCardFileEntryDateTime::ToTime() const |
| 88 | { |
| 89 | struct tm converted = {}; |
| 90 | converted.tm_sec = second; |
| 91 | converted.tm_min = minute; |
| 92 | converted.tm_hour = hour; |
| 93 | converted.tm_mday = day; |
| 94 | converted.tm_mon = std::max(static_cast<int>(month) - 1, 0); |
| 95 | converted.tm_year = std::max(static_cast<int>(year) - 1900, 0); |
| 96 | |
| 97 | #ifdef _MSC_VER |
| 98 | return _mkgmtime(&converted); |
| 99 | #else |
| 100 | return timegm(&converted); |
| 101 | #endif |
| 102 | } |
| 103 | |
| 104 | FolderMemoryCard::FolderMemoryCard() |
| 105 | : m_framesUntilFlush(0) |
no test coverage detected