19 #ifndef QVCT_CUNITTIME_HPP
20 #define QVCT_CUNITTIME_HPP
61 static const QMap<EUnit,QString> &
symbols();
67 static const QMap<EUnit,QString> &
codes();
77 static QString
toString(
double _fdValue,
bool _bAlternateTimeZone =
false );
91 static double fromString(
const QString& _rqString,
double _fdDate,
bool* _pbOK = 0 );
Container class for supported machine-friendly format/unit codes.
QMap< CUnitTime::EUnit, QString > qMapCodes
Container class for supported human-readable format/unit symbols.
QMap< CUnitTime::EUnit, QString > qMapSymbols
Time unit (HMS, HM) rendering/parsing class.
static double fromString(const QString &_rqString, double _fdDate, CUnitTimeZone::EUnit _eUnitTimeZone, bool *_pbOK=0)
Returns the numeric value corresponding (parsed) from the string.
static QString toString(double _fdValue, CUnitTimeZone::EUnit _eUnitTimeZone, EUnit _eUnit, int _iPrecision=0)
Returns the formatted represention of the given value, using the specified format/unit and decimal pr...
static const CUnitTimeCodes oUnitTimeCodes
Container for supported machine-friendly format/unit codes.
@ UNDEFINED
undefined format/unit
static EUnit fromSymbol(const QString &_rqsSymbol)
Returns the format/unit ID corresponding to the given human-readable symbol.
static const CUnitTimeSymbols oUnitTimeSymbols
Container for supported human-readable format/unit symbols.
static const QMap< EUnit, QString > & codes()
Returns the list of supported machine-friendly format/unit codes.
static QString toSymbol(EUnit _eUnit)
Returns the human-readable symbol corresponding to the given format/unit ID.
static const QMap< EUnit, QString > & symbols()
Returns the list of supported human-readable format/unit symbols.
static EUnit fromCode(const QString &_rqsCode)
Returns the format/unit ID corresponding to the given machine-friendly code.
static QString toCode(EUnit _eUnit)
Returns the machine-friendly code corresponding to the given format/unit ID.
static double toValue(double _fdValue, CUnitTimeZone::EUnit _eUnitTimeZone)
Returns the converted value, using the specified format/unit.