Class RawDateTime
An immutable POF date-time value.
Inherited Members
Namespace: Tangosol.IO.Pof
Assembly: Coherence.dll
Syntax
public class RawDateTime
Constructors
RawDateTime(DateTime, RawTime)
Construct a date-time value.
Declaration
public RawDateTime(DateTime date, RawTime time)
Parameters
Type | Name | Description |
---|---|---|
DateTime | date | The date portion of the raw date-time value. |
RawTime | time | The time portion of the raw date-time value. |
Properties
Date
The date portion of the raw date-time value.
Declaration
public DateTime Date { get; }
Property Value
Type | Description |
---|---|
DateTime | The date portion of the raw date-time value. |
Time
The time portion of the raw date-time value.
Declaration
public RawTime Time { get; }
Property Value
Type | Description |
---|---|
RawTime | The time portion of the raw date-time value. |
Methods
Equals(object)
Compare this object with another for equality.
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o | Another object to compare to for equality. |
Returns
Type | Description |
---|---|
bool | true iff this object is equal to the other object. |
Overrides
GetHashCode()
Obtain the hashcode for this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | An integer hashcode. |
Overrides
ToDateTime()
Converts this instance into a DateTime representation, ignoring any time zone information if present.
Declaration
public DateTime ToDateTime()
Returns
Type | Description |
---|---|
DateTime | A DateTime object based on this instance. |
ToLocalTime()
Converts this instance into a local DateTime representation.
Declaration
public DateTime ToLocalTime()
Returns
Type | Description |
---|---|
DateTime | A local DateTime object based on this instance. |
ToString()
Format this object's data as a human-readable string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string description of this object. |
Overrides
ToUniversalTime()
Converts this instance into a Coordinated Universal Time (UTC) DateTime representation.
Declaration
public DateTime ToUniversalTime()
Returns
Type | Description |
---|---|
DateTime | A UTC DateTime object based on this instance. |