HLocalDate Struct
Namespace: Hazelcast.Models
Assembly: Hazelcast.Net.dll
Represents an Hazelcast DATE
primitive type value.
public readonly struct HLocalDate : IEquatable<HLocalDate>
Implements
Inherited Members
Remarks
The DATE
primitive type consists in a day, month and year, with
year being comprised between MinYear and MaxYear
inclusive.
Constructors
Name | Description |
---|---|
HLocalDate(DateOnly) | Initializes a new instance of the HLocalDate struct. |
HLocalDate(DateTime) | Initializes a new instance of the HLocalDate struct. |
HLocalDate(int, byte, byte) | Initializes a new instance of the HLocalDate struct. |
Fields
Name | Description |
---|---|
Max | Gets the largest possible value of a HLocalDate. |
MaxYear | Gets the largest possible value of the year value. |
Min | Gets the smallest possible value of a HLocalDate. |
MinYear | Gets the smallest possible value of the year value. |
Properties
Name | Description |
---|---|
Day | Gets the day value. |
Month | Gets the month value. |
Year | Gets the year value. |
Methods
Name | Description |
---|---|
Equals(HLocalDate) | Indicates whether the current object is equal to another object of the same type. |
Equals(object?) | Indicates whether this instance and a specified object are equal. |
GetHashCode() | Returns the hash code for this instance. |
Parse(string) | Converts the string representation of a date to its HLocalDate representation. |
ToDateOnly() | Converts the value of this HLocalDate to its DateOnly equivalent. |
ToDateTime() | Converts the value of this HLocalDate to its DateTime equivalent. |
ToString() | Returns the fully qualified type name of this instance. |
TryParse(string, out HLocalDate) | Converts the string representation of a date to its HLocalDate representation. A return value indicates whether the operation succeeded. |
TryToDateOnly(out DateOnly) | Converts the value of this HLocalDate to its DateOnly equivalent. A return value indicates whether the operation succeeded. |
TryToDateTime(out DateTime) | Converts the value of this HLocalDate to its DateTime equivalent. A return value indicates whether the operation succeeded. |
Operators
Name | Description |
---|---|
operator ==(HLocalDate, HLocalDate) | Implements the == operator. |
explicit operator DateOnly(HLocalDate) | Implements the HLocalDate to DateOnly conversion. |
explicit operator DateTime(HLocalDate) | Implements the HLocalDate to DateTime conversion. |
explicit operator HLocalDate(DateOnly) | Implements the DateOnly to HLocalDate conversion. |
explicit operator HLocalDate(DateTime) | Implements the DateTime to HLocalDate conversion. |
operator !=(HLocalDate, HLocalDate) | Implements the != operator. |