.NET Client Documentation
5.3.0
Search Results for

    Show / Hide Table of Contents

    HLocalTime Struct

    Namespace: Hazelcast.Models
    Assembly: Hazelcast.Net.dll

    Represents an Hazelcast TIME primitive type value.

    public readonly struct HLocalTime : IEquatable<HLocalTime>
    Implements
    IEquatable<HLocalTime>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Remarks

    The TIME primitive type consists in hours, minutes, seconds and nanoseconds, with nanosecond precision and one-day range.

    Constructors

    Name Description
    HLocalTime(byte, byte, byte, int)

    Initializes a new instance of the HLocalTime struct.

    HLocalTime(DateTime)

    Initializes a new instance of the HLocalTime struct.

    HLocalTime(TimeOnly)

    Initializes a new instance of the HLocalTime struct.

    HLocalTime(TimeSpan)

    Initializes a new instance of the HLocalTime struct.

    Fields

    Name Description
    Max

    Gets the largest possible value of a HLocalTime.

    Midnight

    Gets a value that represents midnight, i.e. "00:00:00".

    Min

    Gets the smallest possible value of a HLocalTime.

    Noon

    Gets a value that represents noon, i.e. "12:00:00".

    Properties

    Name Description
    Hour

    Gets the hour value.

    Minute

    Gets the minute value.

    Nanosecond

    Gets the nanosecond value.

    Second

    Gets the second value.

    Methods

    Name Description
    Equals(HLocalTime)

    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 time to its HLocalTime representation.

    ToString()

    Returns the fully qualified type name of this instance.

    ToTimeOnly()
    ToTimeSpan()

    Converts the value of this HLocalTime to its TimeSpan equivalent.

    TryParse(string, out HLocalTime)

    Converts the string representation of a time to its HLocalTime representation. A return value indicates whether the operation succeeded.

    Operators

    Name Description
    operator ==(HLocalTime, HLocalTime)

    Implements the == operator.

    explicit operator TimeOnly(HLocalTime)

    Implements the HLocalTime to TimeOnly conversion.

    explicit operator TimeSpan(HLocalTime)

    Implements the HLocalTime to TimeSpan conversion.

    explicit operator HLocalTime(DateTime)

    Implements the DateTime to HLocalTime conversion.

    explicit operator HLocalTime(TimeOnly)

    Implements the TimeOnly to HLocalTime conversion.

    explicit operator HLocalTime(TimeSpan)

    Implements the TimeSpan to HLocalTime conversion.

    operator !=(HLocalTime, HLocalTime)

    Implements the != operator.

    In This Article
    Back to top Copyright © 2010-2023 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.