string endTm = Utils::formatTimeAboutMills(endTime); int index = endTm.find_last_of(":"); endTm = endTm.substr(0, index);