Datetime Class |
Namespace: Bloomberglp.Blpapi
The Datetime type exposes the following members.
Name | Description | |
---|---|---|
Datetime | Constructs a Datetime object with each part
initialized to an unset state.
| |
Datetime(DateTime) |
Creates Datetime object from System.DateTime
| |
Datetime(Datetime) | Constructs a Datetime object having the same values as specified 'other'
Datetime object.
| |
Datetime(Int32, Int32, Int32) |
Creates Datetime object having the Date portion set to the specified
values. The time and timezone offset are in the unset state.
| |
Datetime(Int32, Int32, Int32, Int32) |
Creates Datetime object having the Time portion set to the specified
values. The Date and timezone offset are in the unset state.
| |
Datetime(Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Creates Datetime object having the Date and Time portions set to the
specified values. The timezone offset is in the unset state.
|
Name | Description | |
---|---|---|
DayOfMonth | Gets or sets the day of month value of this Datetime object.
The 'get' result is undefined unless DayOfMonth is set.
| |
Hour | Gets or sets the hour value of this Datetime object.
The 'get' result is undefined unless Hour is set.
| |
MicroSecond | Gets or sets the number of (whole) microseconds in the fraction-of-a-second
part of the value of this object. The 'get' result is undefined unless MicroSecond is set.
| |
MilliSecond | Gets or sets the millisecond value of this Datetime object.
The 'get' result is undefined unless MilliSecond is set.
| |
Minute | Gets or sets the minute value of this Datetime object.
The 'get' result is undefined unless Minute is set.
| |
Month | Gets or sets the month value of this Datetime object.
The 'get' result is undefined unless Month is set.
| |
NanoSecond |
Gets or sets the number of (whole) nanoseconds in the fraction-of-a-second
part of the value of this object. The 'get' result is undefined unless NanoSecond is set.
| |
Parts |
Gets a bitmask of all parts that are set in this Datetime object.
| |
PicoSecond |
Gets or sets the number of (whole) picoseconds in the fraction-of-a-second
part of the value of this object. The 'get' result is undefined unless PicoSecond is set.
| |
Second | Gets or sets the second value of this Datetime object.
The 'get' result is undefined unless Second is set.
| |
TimezoneOffsetMinutes | Gets or sets the timezone offset value of this Datetime object.
The 'get' result is undefined unless TimezoneOffsetMinutes is set.
| |
Year | Gets or sets the year value of this Datetime object.
The 'get' result is undefined unless Year is set.
|
Name | Description | |
---|---|---|
Clear |
Sets all parts of this Datetime object to the unset state.
| |
Clone | Create a new Datetime object with the same value as this object.
| |
Equals | Check value equality. Two values are equal if they have the same parts,
and those parts have the same values. e.g. 00:00 is not equal to 00:00:00.
(Overrides ObjectEquals(Object).) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.)
(Overrides ObjectGetHashCode.) | |
HasParts |
Return true if this Datetime object has all of the specified parts set.
| |
IsValid |
Check whether the value of this 'Datetime' object is valid.
The behaviour is undefined unless this object represents a date
(has YEAR, MONTH and DAY part set) or time
(has HOURS, MINUTES, SECONDS and MILLISECONDS part set).
| |
IsValidField | Obsolete. Please use HasParts(Int32) instead.
| |
SetDate | Sets the date portion of this Datetime object
to the specified values.
| |
SetDatetime(DateTime) | Sets the date, time and portions of this Datetime object
using values from the specified System.DateTime.
| |
SetDatetime(Int32, Int32, Int32, Int32, Int32, Int32, Int32) | Sets the date, time and portions of this Datetime object
to the specified values.
| |
SetDatetimeTz | Sets the date, time and timezone offset portions
of this Datetime object to the specified values.
| |
SetDateTz | Sets the date and timezone offset portions of
this Datetime object to the specified values.
| |
SetTime | Sets the time portions of this Datetime object
to the specified values.
| |
SetTimeTz | Setsthe time and timezone offset portions of
this Datetime object to the specified values.
| |
ToString |
Converts the Date and Time represented by this Datetime object to String.
(Overrides ObjectToString.) | |
ToSystemDateTime |
Converts this BLP Datetime object into System.DateTime object.
|
Name | Description | |
---|---|---|
DATE |
Date part bitmask.
| |
DAY_OF_MONTH_PART |
Day of month part bitmask.
| |
HOUR_PART |
Hour part bitmask.
| |
MICROSECOND_PART |
Microsecond part bitmask.
| |
MILLISECOND_PART |
Millisecond part bitmask.
| |
MINUTE_PART |
Minute part bitmask.
| |
MONTH_PART |
Month part bitmask.
| |
NANOSECOND_PART |
Nanosecond part bitmask.
| |
PICOSECOND_PART |
Picosecond part bitmask.
| |
SECOND_PART |
Second part bitmask.
| |
TIME |
Time part bitmask without millisecond.
| |
TIME_ZONE_OFFSET |
Timezone offset part bitmask.
| |
TIMEMILLI |
Time part bitmask with millisecond.
| |
YEAR_PART |
Year part bitmask.
|