DateTimeStringFormat is an interface to string conversion methods for OmmDate, OmmTime & OmmDateTime.
More...
◆ DateTimeStringFormatTypes
An enumeration representing item data state.
Enumerator |
---|
STR_DATETIME_ISO8601 | Indicates Date/Time/DateTime to string output in ISO8601's dateTime format: "YYYY-MM-DDThour:minute:second.nnnnnnnnn" (e.g., 2010-11-30T15:24:54.627529436).
|
STR_DATETIME_RSSL | Indicates Date/Time/DateTime to string output in to string output in the default format: "DD MON YYYY hour:minute:second:milli:micro:nano" (e.g., 30 NOV 2010 15:24:54:627:529:436).
|
Definition at line 43 of file DateTimeStringFormat.h.
◆ dateAsString()
const EmaString& refinitiv::ema::access::DateTimeStringFormat::dateAsString |
( |
OmmDate & |
date | ) |
|
Returns the OmmDate value as a string in a specified format.
- Parameters
-
[in] | OmmDate | that needs to be converted to string. |
- Returns
- string representation of this object OmmDate in the specified format
◆ dateTimeAsString()
const EmaString& refinitiv::ema::access::DateTimeStringFormat::dateTimeAsString |
( |
OmmDateTime & |
dateTime | ) |
|
Returns the OmmDateTime value as a string in a specified format.
- Parameters
-
- Returns
- string representation of this object OmmDateTime in the specified format
◆ dateTimeStringFormatType()
Specifies DateTimeStringFormatType.
- Exceptions
-
- Parameters
-
[in] | DateTimeStringFormatTypes | specifies the format of the string output of Date/Time/DateTime |
- Returns
- format of the output string.
◆ getDateTimeStringFormatType()
Returns DateTimeStringFormatTypes.
- Returns
- value of DateTimeStringFormatTypes
◆ timeAsString()
const EmaString& refinitiv::ema::access::DateTimeStringFormat::timeAsString |
( |
OmmTime & |
time | ) |
|
Returns the OmmTime value as a string in a specified format.
- Parameters
-
[in] | OmmTime | that needs to be converted to string. |
- Returns
- string representation of this object OmmTime in the specified format