38 #include <OpenMS/OpenMSConfig.h>
40 #include <QtCore/QDate>
DateTime Class.
Definition: DateTime.h:55
void setDate(UInt month, UInt day, UInt year)
sets data from three integers
bool operator!=(const DateTime &rhs) const
not-equal operator
String getDate() const
Returns the date as string.
static DateTime now()
Returns the current date and time.
QDateTime dt_
Definition: DateTime.h:214
String toString(std::string format="yyyy-MM-ddThh:mm:ss") const
void setTime(const String &date)
sets time from a string
bool operator<(const DateTime &rhs) const
less operator
DateTime()
Default constructor.
String getTime() const
Returns the time as string.
static DateTime fromString(const std::string &date, std::string format="yyyy-MM-ddThh:mm:ss")
void getDate(UInt &month, UInt &day, UInt &year) const
Fills the arguments with the date.
bool isValid() const
Returns true if the date time is valid.
DateTime & operator=(const DateTime &source)
Assignment operator.
DateTime(DateTime &&)=default
Move constructor.
void set(const String &date)
Sets date and time.
DateTime & operator=(DateTime &&) &noexcept
Move assignment operator.
void setDate(const String &date)
sets date from a string
void getTime(UInt &hour, UInt &minute, UInt &second) const
Fills the arguments with the time.
bool isNull() const
return true if the date and time is null
bool operator==(const DateTime &rhs) const
equal operator
String get() const
Returns a string representation of the date and time.
void clear()
Sets the undefined date: 00/00/0000 00:00:00.
void get(UInt &month, UInt &day, UInt &year, UInt &hour, UInt &minute, UInt &second) const
Fills the arguments with the date and the time.
DateTime & addSecs(int s)
void setTime(UInt hour, UInt minute, UInt second)
sets time from three integers
DateTime(const DateTime &date)=default
Copy constructor.
void set(UInt month, UInt day, UInt year, UInt hour, UInt minute, UInt second)
sets data from six integers
A more convenient string class.
Definition: String.h:60
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47