Encapsulates UTCDateOnly FIX type.
More...
#include <b2bits/types/UTCDateOnly.h>
|
static unsigned const int | ValueSize = sizeof("YYYYMMDD") - 1 |
| Maximum buffer size required to store value. More...
|
|
Encapsulates UTCDateOnly FIX type.
◆ value_type
Represents storage type for date-time value.
◆ UTCDateOnly() [1/2]
B2bits::UTCDateOnly::UTCDateOnly |
( |
| ) |
|
|
noexcept |
◆ UTCDateOnly() [2/2]
B2bits::UTCDateOnly::UTCDateOnly |
( |
int |
year, |
|
|
int |
month, |
|
|
int |
day |
|
) |
| |
|
noexcept |
Constructor. Constructs object from year, month and day values.
- Parameters
-
year | Year |
month | Month in range [1, 12] |
day | Day in range [1, 31] |
◆ day()
int B2bits::UTCDateOnly::day |
( |
| ) |
const |
|
noexcept |
Returns day part of value.
◆ fromDecimal()
Constructs object from decimal date format (YYYYMMDD).
◆ fromDecimalString()
Constructs object from decimal date format (YYYYMMDD).
◆ fromFixString()
Constructs object from FIX string.
◆ fromString()
Constructs object from decimal date format (YYYYMMDD).
◆ month()
int B2bits::UTCDateOnly::month |
( |
| ) |
const |
|
noexcept |
Returns month part of value.
◆ now()
◆ operator!=()
bool B2bits::UTCDateOnly::operator!= |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
◆ operator<()
bool B2bits::UTCDateOnly::operator< |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
◆ operator<=()
bool B2bits::UTCDateOnly::operator<= |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
◆ operator==()
bool B2bits::UTCDateOnly::operator== |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
◆ operator>()
bool B2bits::UTCDateOnly::operator> |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
◆ operator>=()
bool B2bits::UTCDateOnly::operator>= |
( |
const UTCDateOnly & |
v | ) |
const |
|
inlinenoexcept |
Greater or equal operator.
◆ toDecimal()
u32 B2bits::UTCDateOnly::toDecimal |
( |
| ) |
const |
|
noexcept |
Returns value in decimal format (YYYYMMDD)
◆ toFixString() [1/2]
char* B2bits::UTCDateOnly::toFixString |
( |
char * |
buf, |
|
|
char * |
end |
|
) |
| const |
|
noexcept |
Converts stored value to FIX string 'YYYYMMDD'.
- Parameters
-
buf | Memory buffer enough to store string like YYYYMMDD |
end | Pointer to past-the-end element of memory buffer |
- Returns
- pointer to the first character of the result. Last character of result is last character of the 'buf' parameter.
◆ toFixString() [2/2]
std::string& B2bits::UTCDateOnly::toFixString |
( |
std::string * |
dest | ) |
const |
Converts value stored in object to FIX string 'YYYYMMDD'.
◆ year()
int B2bits::UTCDateOnly::year |
( |
| ) |
const |
|
noexcept |
Returns year part of value.
◆ ValueSize
unsigned const int B2bits::UTCDateOnly::ValueSize = sizeof("YYYYMMDD") - 1 |
|
static |
Maximum buffer size required to store value.