QDateTime
QDateTime is a class in the Qt Core module that encapsulates date and time information. It combines a calendar date and a time of day with a time specification that clarifies how the value should be interpreted. A QDateTime object generally comprises a QDate, a QTime, and a time specification such as local time, UTC, or an offset from UTC.
A QDateTime can be valid or invalid. Use isValid() to check before use. It provides accessors and
Construction and conversion options include a default constructor, and constructors such as QDateTime(const QDate &, const QTime
Time specification is represented by the TimeSpec enum, which includes LocalTime, UTC, and OffsetFromUTC. Some Qt
QDateTime interoperates with QDate and QTime and supports arithmetic operations such as addDays(int), addSecs(int), and addMSecs(int).