Searched refs:bcdTime (Results 1 – 4 of 4) sorted by relevance
73 uint64_t getMillisecondsSinceEpoch(const BCDTime& bcdTime) in getMillisecondsSinceEpoch() argument76 int year = (fromBCD(bcdTime.yearMSB) * 100) + fromBCD(bcdTime.yearLSB); in getMillisecondsSinceEpoch()79 utcTime.tm_mon = fromBCD(bcdTime.month) - 1; in getMillisecondsSinceEpoch()80 utcTime.tm_mday = fromBCD(bcdTime.day); in getMillisecondsSinceEpoch()81 utcTime.tm_hour = fromBCD(bcdTime.hour); in getMillisecondsSinceEpoch()82 utcTime.tm_min = fromBCD(bcdTime.minutes); in getMillisecondsSinceEpoch()83 utcTime.tm_sec = fromBCD(bcdTime.seconds); in getMillisecondsSinceEpoch()88 int milliseconds = fromBCD(bcdTime.hundredths) * 10; in getMillisecondsSinceEpoch()
65 uint64_t getMillisecondsSinceEpoch(const BCDTime& bcdTime);
79 uint64_t bcdTime = 0; in fileNameToTimestamp() local87 bcdTime |= (static_cast<uint64_t>(tmp) << 56); in fileNameToTimestamp()97 bcdTime |= (static_cast<uint64_t>(tmp) << 48); in fileNameToTimestamp()107 bcdTime |= (static_cast<uint64_t>(tmp) << 40); in fileNameToTimestamp()117 bcdTime |= (static_cast<uint64_t>(tmp) << 32); in fileNameToTimestamp()127 bcdTime |= (tmp << 24); in fileNameToTimestamp()137 bcdTime |= (tmp << 16); in fileNameToTimestamp()147 bcdTime |= (tmp << 8); in fileNameToTimestamp()157 bcdTime |= tmp; in fileNameToTimestamp()164 return bcdTime; in fileNameToTimestamp()
114 auto bcdTime = getBCDTime(ms); in TEST() local121 EXPECT_EQ(ms, getMillisecondsSinceEpoch(bcdTime)); in TEST()