SCOS date/time class.
More...
#include </var/tmp/work/evaf/src/apps/ScosTime/gui.h>
|
QString | asASDstring () const |
| Returns the date/time value as a string in the ASD format yyyy.ddd.hh.mm.ss.zzz. More...
|
|
QString | asCUChexString () const |
| Returns the date/time value as a CUC hex string in the format ccccccccffff. More...
|
|
QString | asISOstring () const |
| Returns the date/time value a string in the ISO format yyyy-MM-ddThh:mm:ss.zzz. More...
|
|
| DateTime () |
| Creates an invalid date/time value with the default epoch. More...
|
|
QDateTime const & | dateTime () const |
| Returns the current date/time value. More...
|
|
QDateTime const & | epoch () const |
| Returns the current epoch. More...
|
|
bool | isValid () const |
| Returns true if the date/time value is valid. More...
|
|
Type | setDateTime (QString const &s, QDateTime const &epoch) |
| Sets the date/time value from a string. More...
|
|
Type | setDateTime (QString const &s) |
| Sets the date/time value from a string using the previously set epoch. More...
|
|
void | setEpoch (QDateTime const &epoch) |
| Sets the epoch. More...
|
|
Type | type () const |
| Returns the type of the date/time string from which the date/time value was created. More...
|
|
| ~DateTime () |
| Dtor. More...
|
|
SCOS date/time class.
Definition at line 44 of file gui.h.
Type of the date/time entry.
Enumerator |
---|
Invalid |
|
ASD |
|
ISO |
|
CUC |
|
Definition at line 49 of file gui.h.
eVaf::ScosTime::Internal::DateTime::DateTime |
( |
| ) |
|
Creates an invalid date/time value with the default epoch.
eVaf::ScosTime::Internal::DateTime::~DateTime |
( |
| ) |
|
QString eVaf::ScosTime::Internal::DateTime::asASDstring |
( |
| ) |
const |
Returns the date/time value as a string in the ASD format yyyy.ddd.hh.mm.ss.zzz.
QString eVaf::ScosTime::Internal::DateTime::asCUChexString |
( |
| ) |
const |
Returns the date/time value as a CUC hex string in the format ccccccccffff.
QString eVaf::ScosTime::Internal::DateTime::asISOstring |
( |
| ) |
const |
Returns the date/time value a string in the ISO format yyyy-MM-ddThh:mm:ss.zzz.
QDateTime const& eVaf::ScosTime::Internal::DateTime::dateTime |
( |
| ) |
const |
|
inline |
Returns the current date/time value.
Definition at line 122 of file gui.h.
QDateTime const& eVaf::ScosTime::Internal::DateTime::epoch |
( |
| ) |
const |
|
inline |
Returns the current epoch.
Definition at line 106 of file gui.h.
bool eVaf::ScosTime::Internal::DateTime::isValid |
( |
| ) |
const |
|
inline |
Returns true if the date/time value is valid.
Definition at line 111 of file gui.h.
Type eVaf::ScosTime::Internal::DateTime::setDateTime |
( |
QString const & |
s, |
|
|
QDateTime const & |
epoch |
|
) |
| |
Sets the date/time value from a string.
- Parameters
-
- Returns
- Type of the input string
The input string can be:
- Date/time in ISO format yyyy-MM-ddThh:mm[:ss[.zzz]]
- Date/time in ASD format yyyy.ddd.hh.mm[.ss[.zzz]]
- CUC hex string cccccccc[ffff]
If the string is invalid, creates an invalid date/time value.
Type eVaf::ScosTime::Internal::DateTime::setDateTime |
( |
QString const & |
s | ) |
|
Sets the date/time value from a string using the previously set epoch.
- Parameters
-
- Returns
- Type of the input string
The input string can be:
- Date/time in ISO format yyyy-MM-ddThh:mm[:ss[.zzz]]
- Date/time in ASD format yyyy.ddd.hh.mm[.ss[.zzz]]
- CUC hex string cccccccc[ffff]
If the input string is invalid or no epoch is set, creates an invalid date/time value.
void eVaf::ScosTime::Internal::DateTime::setEpoch |
( |
QDateTime const & |
epoch | ) |
|
Sets the epoch.
- Parameters
-
Type eVaf::ScosTime::Internal::DateTime::type |
( |
| ) |
const |
|
inline |
Returns the type of the date/time string from which the date/time value was created.
Definition at line 117 of file gui.h.
The documentation for this class was generated from the following file: