|
| | Datetime () |
| |
| | Datetime (const Datetime &original) |
| |
| | Datetime (const blpapi_Datetime_t &rawValue) |
| |
| | Datetime (const blpapi_HighPrecisionDatetime_t &rawValue) |
| |
| | Datetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds) |
| |
| | Datetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, unsigned milliseconds) |
| |
| | Datetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Milliseconds fractionOfSecond) |
| |
| | Datetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Microseconds fractionOfSecond) |
| |
| | Datetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Nanoseconds fractionOfSecond) |
| |
| | Datetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Picoseconds fractionOfSecond) |
| |
| | Datetime (unsigned year, unsigned month, unsigned day) |
| |
| | Datetime (unsigned hours, unsigned minutes, unsigned seconds, unsigned milliseconds) |
| |
| | Datetime (unsigned hours, unsigned minutes, unsigned seconds, Milliseconds fractionOfSecond) |
| |
| | Datetime (unsigned hours, unsigned minutes, unsigned seconds, Microseconds fractionOfSecond) |
| |
| | Datetime (unsigned hours, unsigned minutes, unsigned seconds, Nanoseconds fractionOfSecond) |
| |
| | Datetime (unsigned hours, unsigned minutes, unsigned seconds, Picoseconds fractionOfSecond) |
| |
| Datetime & | operator= (const Datetime &rhs) |
| |
| void | setDate (unsigned year, unsigned month, unsigned day) |
| |
| void | setTime (unsigned hours, unsigned minutes, unsigned seconds) |
| |
| void | setTime (unsigned hours, unsigned minutes, unsigned seconds, unsigned milliseconds) |
| |
| void | setTime (unsigned hours, unsigned minutes, unsigned seconds, Milliseconds fractionOfSecond) |
| |
| void | setTime (unsigned hours, unsigned minutes, unsigned seconds, Microseconds fractionOfSecond) |
| |
| void | setTime (unsigned hours, unsigned minutes, unsigned seconds, Nanoseconds fractionOfSecond) |
| |
| void | setTime (unsigned hours, unsigned minutes, unsigned seconds, Picoseconds fractionOfSecond) |
| |
| void | setOffset (short minutesAheadOfUTC) |
| |
| void | setYear (unsigned value) |
| |
| void | setMonth (unsigned value) |
| |
| void | setDay (unsigned value) |
| |
| void | setHours (unsigned value) |
| |
| void | setMinutes (unsigned value) |
| |
| void | setSeconds (unsigned value) |
| |
| void | setMilliseconds (unsigned milliseconds) |
| |
| void | setFractionOfSecond (Milliseconds value) |
| |
| void | setFractionOfSecond (Microseconds value) |
| |
| void | setFractionOfSecond (Nanoseconds value) |
| |
| void | setFractionOfSecond (Picoseconds value) |
| |
| blpapi_Datetime_t & | rawValue () |
| |
| blpapi_HighPrecisionDatetime_t & | rawHighPrecisionValue () |
| |
| bool | hasParts (unsigned parts) const |
| |
| unsigned | parts () const |
| |
| unsigned | year () const |
| |
| unsigned | month () const |
| |
| unsigned | day () const |
| |
| unsigned | hours () const |
| |
| unsigned | minutes () const |
| |
| unsigned | seconds () const |
| |
| unsigned | milliSeconds () const |
| |
| unsigned | milliseconds () const |
| |
| unsigned | microseconds () const |
| |
| unsigned | nanoseconds () const |
| |
| unsigned long long | picoseconds () const |
| |
| short | offset () const |
| |
| const blpapi_Datetime_t & | rawValue () const |
| |
| const blpapi_HighPrecisionDatetime_t & | rawHighPrecisionValue () const |
| |
| const HighPrecision & | highPrecisionValue () const |
| |
| bool | isValid () const |
| |
| std::ostream & | print (std::ostream &stream, int level=0, int spacesPerLevel=4) const |
| |
|
| static bool | isValidDate (int year, int month, int day) |
| |
| static bool | isValidTime (int hours, int minutes, int seconds) |
| |
| static bool | isValidTime (int hours, int minutes, int seconds, int milliSeconds) |
| |
| static bool | isValidTime (int hours, int minutes, int seconds, Milliseconds fractionOfSecond) |
| |
| static bool | isValidTime (int hours, int minutes, int seconds, Microseconds fractionOfSecond) |
| |
| static bool | isValidTime (int hours, int minutes, int seconds, Nanoseconds fractionOfSecond) |
| |
| static bool | isValidTime (int hours, int minutes, int seconds, Picoseconds fractionOfSecond) |
| |
| static Datetime | createDatetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds) |
| |
| static Datetime | createDatetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Offset offset) |
| |
| static Datetime | createDatetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Milliseconds fractionOfSecond) |
| |
| static Datetime | createDatetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Microseconds fractionOfSecond) |
| |
| static Datetime | createDatetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Nanoseconds fractionOfSecond) |
| |
| static Datetime | createDatetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Picoseconds fractionOfSecond) |
| |
| static Datetime | createDatetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Milliseconds fractionOfSecond, Offset offset) |
| |
| static Datetime | createDatetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Microseconds fractionOfSecond, Offset offset) |
| |
| static Datetime | createDatetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Nanoseconds fractionOfSecond, Offset offset) |
| |
| static Datetime | createDatetime (unsigned year, unsigned month, unsigned day, unsigned hours, unsigned minutes, unsigned seconds, Picoseconds fractionOfSecond, Offset offset) |
| |
| static Datetime | createDate (unsigned year, unsigned month, unsigned day) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds, Offset offset) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds, unsigned milliseconds) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds, unsigned milliseconds, Offset offset) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds, Milliseconds fractionOfSecond) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds, Microseconds fractionOfSecond) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds, Nanoseconds fractionOfSecond) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds, Picoseconds fractionOfSecond) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds, Milliseconds fractionOfSecond, Offset offset) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds, Microseconds fractionOfSecond, Offset offset) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds, Nanoseconds fractionOfSecond, Offset offset) |
| |
| static Datetime | createTime (unsigned hours, unsigned minutes, unsigned seconds, Picoseconds fractionOfSecond, Offset offset) |
| |
Represents a date and/or time.
Datetime can represent a date and/or a time or any combination of the components of a date and time. The value is represented as eight parts which can be set or queried independently.
These parts are: year; month (from January as 1 to December as 12); day (of month, from 1 to 31); hour (from 0 to 23); minute (0 to 59); second (0 to 59); fraction-of-second (logically representing arbitrary precision, with the current interface providing picosecond resolution); and offset (time zone as minutes ahead of UTC).
Methods are provided to set and query the parts individually and in groups, e.g. setDate() and setTime(). It is also possible to determine which parts of the Datetime have been set (via the parts() method).
See Component blpapi_datetime
| Datetime |
( |
unsigned |
year, |
|
|
unsigned |
month, |
|
|
unsigned |
day, |
|
|
unsigned |
hours, |
|
|
unsigned |
minutes, |
|
|
unsigned |
seconds |
|
) |
| |
Create a Datetime object having the value representing the specified year, month, day, hours, minutes, and seconds parts. The behavior is undefined unless year, month, and day represent a valid date as specified by the isValidDate function, and hours, minutes, and seconds represent a valid time as specified by the isValidTime function. The resulting Datetime object has the parts specified by DATE and TIME set, and the OFFSET and FRACSECONDS parts unset. Use of this function is discouraged; use createDatetime instead.
| Datetime |
( |
unsigned |
year, |
|
|
unsigned |
month, |
|
|
unsigned |
day, |
|
|
unsigned |
hours, |
|
|
unsigned |
minutes, |
|
|
unsigned |
seconds, |
|
|
unsigned |
milliseconds |
|
) |
| |
Create a Datetime object having the value representing the specified year, month, day, hours, minutes, seconds, and milliseconds. The behavior is undefined unless year, month, and day represent a valid date as specified by the isValidDate function, and hours, minutes, seconds, and milliseconds represent a valid time as specified by the isValidTime function. The resulting Datetime object has the parts specified by DATE and TIMEFRACSECONDS set, and the OFFSET part unset. Use of this function is discouraged; use createDatetime instead.
| Datetime |
( |
unsigned |
year, |
|
|
unsigned |
month, |
|
|
unsigned |
day, |
|
|
unsigned |
hours, |
|
|
unsigned |
minutes, |
|
|
unsigned |
seconds, |
|
|
Picoseconds |
fractionOfSecond |
|
) |
| |
Create a Datetime object having the value representing the specified year, month, day, hours, minutes, seconds, and fractionOfSecond. The behavior is undefined unless year, month, and day represent a valid date as specified by the isValidDate function, and hours, minutes, seconds, and fractionOfSecond represent a valid time as specified by the isValidTime function. The resulting Datetime object has the parts specified by DATE and TIMEFRACSECONDS set, and the OFFSET part unset. Use of these functions is discouraged; use createDatetime instead.
| Datetime |
( |
unsigned |
year, |
|
|
unsigned |
month, |
|
|
unsigned |
day |
|
) |
| |
Create a Datetime object having the value representing the specified year, month, and day. The behavior is undefined unless year, month, and day represent a valid date as specified by the isValidDate function. The resulting Datetime object has the parts specified by DATE set, and all other parts unset.
Note that constructing a Datetime from three integers produces a date; to create a time from hour, minute, and second (without the fraction-of-second part unset) use createTime(). Use of this function is discouraged; use createDate() instead.
| Datetime createDatetime |
( |
unsigned |
year, |
|
|
unsigned |
month, |
|
|
unsigned |
day, |
|
|
unsigned |
hours, |
|
|
unsigned |
minutes, |
|
|
unsigned |
seconds |
|
) |
| |
|
static |
Create a Datetime object having the value representing the specified year, month, day, hours, minutes, and seconds parts. The behavior is undefined unless year, month, and day represent a valid date as specified by the isValidDate function, and hours, minutes, and seconds represent a valid time as specified by the isValidTime function. The resulting Datetime object has the parts specified by DATE and TIME set, and the OFFSET and FRACSECONDS parts unset.
| Datetime createDatetime |
( |
unsigned |
year, |
|
|
unsigned |
month, |
|
|
unsigned |
day, |
|
|
unsigned |
hours, |
|
|
unsigned |
minutes, |
|
|
unsigned |
seconds, |
|
|
Offset |
offset |
|
) |
| |
|
static |
Create a Datetime object having the value representing the specified year, month, day, hours, minutes, seconds, and offset parts. The behavior is undefined unless year, month, and day represent a valid date as specified by the isValidDate function, and hours, minutes, and seconds represent a valid time as specified by the isValidTime function. The resulting Datetime object has the parts specified by DATE, TIME, and OFFSET set, and the FRACSECONDS part unset.
| Datetime createDatetime |
( |
unsigned |
year, |
|
|
unsigned |
month, |
|
|
unsigned |
day, |
|
|
unsigned |
hours, |
|
|
unsigned |
minutes, |
|
|
unsigned |
seconds, |
|
|
Picoseconds |
fractionOfSecond |
|
) |
| |
|
static |
Create a Datetime object having the value representing the specified year, month, day, hours, minutes, seconds, and fractionOfSecond. The behavior is undefined unless year, month, and day represent a valid date as specified by the isValidDate function, and hours, minutes, seconds, and fractionOfSecond represent a valid time as specified by the isValidTime function. The resulting Datetime object has the parts specified by DATE and TIMEFRACSECONDS set, and the OFFSET part unset.
| Datetime createDatetime |
( |
unsigned |
year, |
|
|
unsigned |
month, |
|
|
unsigned |
day, |
|
|
unsigned |
hours, |
|
|
unsigned |
minutes, |
|
|
unsigned |
seconds, |
|
|
Picoseconds |
fractionOfSecond, |
|
|
Offset |
offset |
|
) |
| |
|
static |
Create a Datetime object having the value representing the specified year, month, day, hours, minutes, seconds, fractionOfSecond, and offset. The behavior is undefined unless year, month, and day represent a valid date as specified by the isValidDate function, and hours, minutes, seconds, and fractionOfSecond represent a valid time as specified by the isValidTime function. The resulting Datetime object has all parts set.
| Datetime createTime |
( |
unsigned |
hours, |
|
|
unsigned |
minutes, |
|
|
unsigned |
seconds, |
|
|
unsigned |
milliseconds |
|
) |
| |
|
static |
Create a <code>Datetime</code> object having the value representing
the specified hours, minutes, seconds, and milliseconds. The behavior is undefined unless hours, minutes, seconds, and milliseconds represent a valid time as specified by the isValidTime function. The resulting Datetime object has the parts specified by TIMEFRACSECONDS set, and all other parts unset.
| std::ostream & print |
( |
std::ostream & |
stream, |
|
|
int |
level = 0, |
|
|
int |
spacesPerLevel = 4 |
|
) |
| const |
Write the value of this object to the specified output stream in a human-readable format, and return a reference to stream. Optionally specify an initial indentation level, whose absolute value is incremented recursively for nested objects. If level is specified, optionally specify spacesPerLevel, whose absolute value indicates the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect. Note that this human-readable format is not fully specified, and can change without notice.