MythTV
master
|
Go to the source code of this file.
Namespaces | |
MythDate | |
Functions | |
QDateTime | MythDate::current (bool stripped=false) |
Returns current Date and Time in UTC. More... | |
QString | MythDate::current_iso_string (bool stripped=false) |
Returns current Date and Time in UTC as a string. More... | |
QDateTime | MythDate::as_utc (const QDateTime &dt) |
Returns copy of QDateTime with TimeSpec set to UTC. More... | |
QDateTime | MythDate::fromString (const QString &dtstr) |
Converts kFilename && kISODate formats to QDateTime. More... | |
MBASE_PUBLIC QDateTime | MythDate::fromString (const QString &dt, const QString &format) |
Converts dy in format to QDateTime. More... | |
MBASE_PUBLIC QDateTime | MythDate::fromSecsSinceEpoch (uint seconds) |
This function takes the number of seconds since the start of the epoch and returns a QDateTime with the equivalent value. More... | |
QString | MythDate::toString (const QDateTime &datetime, uint format=MythDate::kDateTimeFull) |
Returns formatted string representing the time. More... | |
QString | MythDate::toString (const QDate date, uint format) |
Returns a formatted QString based on the supplied QDate. More... | |
int | MythDate::toSeconds (QTime time) |
Returns the total number of seconds since midnight of the supplied QTime. More... | |