Search Results for

    Show / Hide Table of Contents

    Class DateMathTime

    A time representation for use within DateMath expressions.

    Inheritance
    object
    DateMathTime
    Implements
    IComparable<DateMathTime>
    IEquatable<DateMathTime>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class DateMathTime : IComparable<DateMathTime>, IEquatable<DateMathTime>

    Constructors

    | Edit this page View Source

    DateMathTime(double, MidpointRounding)

    Instantiates a new instance of DateMathTime from a milliseconds value. Rounding can be specified to determine how fractional second values should be rounded.

    Declaration
    public DateMathTime(double milliseconds, MidpointRounding rounding = MidpointRounding.AwayFromZero)
    Parameters
    Type Name Description
    double milliseconds
    MidpointRounding rounding
    | Edit this page View Source

    DateMathTime(int, DateMathTimeUnit)

    Instantiates a new instance of DateMathTime from a factor and interval.

    Declaration
    public DateMathTime(int factor, DateMathTimeUnit interval)
    Parameters
    Type Name Description
    int factor
    DateMathTimeUnit interval
    | Edit this page View Source

    DateMathTime(string, MidpointRounding)

    Instantiates a new instance of DateMathTime from the timeUnit string expression. Rounding can be specified to determine how fractional second values should be rounded.

    Declaration
    public DateMathTime(string timeUnit, MidpointRounding rounding = MidpointRounding.AwayFromZero)
    Parameters
    Type Name Description
    string timeUnit
    MidpointRounding rounding
    | Edit this page View Source

    DateMathTime(TimeSpan, MidpointRounding)

    Instantiates a new instance of DateMathTime from a TimeSpan. Rounding can be specified to determine how fractional second values should be rounded.

    Declaration
    public DateMathTime(TimeSpan timeSpan, MidpointRounding rounding = MidpointRounding.AwayFromZero)
    Parameters
    Type Name Description
    TimeSpan timeSpan
    MidpointRounding rounding

    Properties

    | Edit this page View Source

    Factor

    The numeric time factor

    Declaration
    public int Factor { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Interval

    The time units

    Declaration
    public DateMathTimeUnit Interval { get; }
    Property Value
    Type Description
    DateMathTimeUnit

    Methods

    | Edit this page View Source

    CompareTo(DateMathTime)

    Declaration
    public int CompareTo(DateMathTime other)
    Parameters
    Type Name Description
    DateMathTime other
    Returns
    Type Description
    int
    | Edit this page View Source

    Equals(DateMathTime)

    Declaration
    public bool Equals(DateMathTime other)
    Parameters
    Type Name Description
    DateMathTime other
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Operators

    | Edit this page View Source

    operator ==(DateMathTime, DateMathTime)

    Declaration
    public static bool operator ==(DateMathTime left, DateMathTime right)
    Parameters
    Type Name Description
    DateMathTime left
    DateMathTime right
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator >(DateMathTime, DateMathTime)

    Declaration
    public static bool operator >(DateMathTime left, DateMathTime right)
    Parameters
    Type Name Description
    DateMathTime left
    DateMathTime right
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator >=(DateMathTime, DateMathTime)

    Declaration
    public static bool operator >=(DateMathTime left, DateMathTime right)
    Parameters
    Type Name Description
    DateMathTime left
    DateMathTime right
    Returns
    Type Description
    bool
    | Edit this page View Source

    implicit operator DateMathTime(double)

    Declaration
    public static implicit operator DateMathTime(double milliseconds)
    Parameters
    Type Name Description
    double milliseconds
    Returns
    Type Description
    DateMathTime
    | Edit this page View Source

    implicit operator DateMathTime(string)

    Declaration
    public static implicit operator DateMathTime(string expression)
    Parameters
    Type Name Description
    string expression
    Returns
    Type Description
    DateMathTime
    | Edit this page View Source

    implicit operator DateMathTime(TimeSpan)

    Declaration
    public static implicit operator DateMathTime(TimeSpan span)
    Parameters
    Type Name Description
    TimeSpan span
    Returns
    Type Description
    DateMathTime
    | Edit this page View Source

    operator !=(DateMathTime, DateMathTime)

    Declaration
    public static bool operator !=(DateMathTime left, DateMathTime right)
    Parameters
    Type Name Description
    DateMathTime left
    DateMathTime right
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator <(DateMathTime, DateMathTime)

    Declaration
    public static bool operator <(DateMathTime left, DateMathTime right)
    Parameters
    Type Name Description
    DateMathTime left
    DateMathTime right
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator <=(DateMathTime, DateMathTime)

    Declaration
    public static bool operator <=(DateMathTime left, DateMathTime right)
    Parameters
    Type Name Description
    DateMathTime left
    DateMathTime right
    Returns
    Type Description
    bool

    Implements

    IComparable<T>
    IEquatable<T>

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • DateMathTime(double, MidpointRounding)
      • DateMathTime(int, DateMathTimeUnit)
      • DateMathTime(string, MidpointRounding)
      • DateMathTime(TimeSpan, MidpointRounding)
    • Properties
      • Factor
      • Interval
    • Methods
      • CompareTo(DateMathTime)
      • Equals(DateMathTime)
      • Equals(object)
      • GetHashCode()
      • ToString()
    • Operators
      • operator ==(DateMathTime, DateMathTime)
      • operator >(DateMathTime, DateMathTime)
      • operator >=(DateMathTime, DateMathTime)
      • implicit operator DateMathTime(double)
      • implicit operator DateMathTime(string)
      • implicit operator DateMathTime(TimeSpan)
      • operator !=(DateMathTime, DateMathTime)
      • operator <(DateMathTime, DateMathTime)
      • operator <=(DateMathTime, DateMathTime)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX