MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / setTime

Method setTime

src/openms/source/DATASTRUCTURES/DateTime.cpp:228–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 }
227
228 void DateTime::setTime(const String& time)
229 {
230 QTime temp_time;
231
232 temp_time = QTime::fromString(time.c_str(), "hh:mm:ss");
233 if (!temp_time.isValid())
234 {
235 throw Exception::ParseError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, time, "Could not set time");
236 }
237
238 dt_->setTime(temp_time);
239 }
240
241 void DateTime::setDate(UInt month, UInt day, UInt year)
242 {

Callers 5

endElementMethod · 0.80
readOutHeaderMethod · 0.80
extractDateTime_Method · 0.80
setMethod · 0.80
DateTime_test.cppFile · 0.80

Calls 2

StringClass · 0.50
isValidMethod · 0.45

Tested by

no test coverage detected