| 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 | { |
no test coverage detected