45 #if QT_VERSION < QT_VERSION_CHECK(5,8,0) 62 #endif // _MYTH_DATE_H_
Default UTC, "yyyyMMddhhmmss".
QString current_iso_string(bool stripped)
Returns current Date and Time in UTC as a string.
int toSeconds(const QTime &time)
Returns the total number of seconds since midnight of the supplied QTime.
QDateTime as_utc(const QDateTime &old_dt)
Returns copy of QDateTime with TimeSpec set to UTC.
MBASE_PUBLIC QDateTime fromSecsSinceEpoch(uint seconds)
This function takes the number of seconds since the start of the epoch and returns a QDateTime with t...
Add year only if different from current year.
QDateTime current(bool stripped)
Returns current Date and Time in UTC.
Present date/time in UTC.
Do Today/Yesterday/Tomorrow transform.
QString toString(const QDateTime &raw_dt, uint format)
Returns formatted string representing the time.
"yyyy-MM-ddThh-mm-ss.zzz"
Present date/time in localtime.
Default UTC, database format.
Add year to string if not included.
QDateTime fromString(const QString &dtstr)
Converts kFilename && kISODate formats to QDateTime.
enum MythDate::Formats Format