##// END OF EJS Templates
Defines VariableState struct (1)...
Defines VariableState struct (1) Creates the struct representing a test state (variable, expected range of the variable, etc.). This structure will be used to validate an operation after its execution

File last commit:

r487:ff7ed2ba3c52
r1220:4f6d96e79a3a
Show More
DateUtils.cpp
13 lines | 383 B | text/x-c | CppLexer
Alexandre Leroux
Creates DateUtils to convert datetime to secs and secs to datetime
r487 #include "Common/DateUtils.h"
QDateTime DateUtils::dateTime(double secs, Qt::TimeSpec timeSpec) noexcept
{
// Uses msecs to be Qt 4 compatible
return QDateTime::fromMSecsSinceEpoch(secs * 1000., timeSpec);
}
double DateUtils::secondsSinceEpoch(const QDateTime &dateTime) noexcept
{
// Uses msecs to be Qt 4 compatible
return dateTime.toMSecsSinceEpoch() / 1000.;
}