Search Results for

    Show / Hide Table of Contents

    Class DateMath

    Inheritance
    object
    DateMath
    DateMathExpression
    Implements
    IDateMath
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public abstract class DateMath : IDateMath

    Fields

    | Edit this page View Source

    Anchor

    Declaration
    protected Union<DateTime, string> Anchor
    Field Value
    Type Description
    Union<DateTime, string>
    | Edit this page View Source

    Round

    Declaration
    protected DateMathTimeUnit? Round
    Field Value
    Type Description
    DateMathTimeUnit?

    Properties

    | Edit this page View Source

    Now

    Declaration
    public static DateMathExpression Now { get; }
    Property Value
    Type Description
    DateMathExpression
    | Edit this page View Source

    Self

    Declaration
    protected IDateMath Self { get; }
    Property Value
    Type Description
    IDateMath

    Methods

    | Edit this page View Source

    Anchored(DateTime)

    Declaration
    public static DateMathExpression Anchored(DateTime anchor)
    Parameters
    Type Name Description
    DateTime anchor
    Returns
    Type Description
    DateMathExpression
    | Edit this page View Source

    Anchored(string)

    Declaration
    public static DateMathExpression Anchored(string dateAnchor)
    Parameters
    Type Name Description
    string dateAnchor
    Returns
    Type Description
    DateMathExpression
    | Edit this page View Source

    FromString(string)

    Declaration
    public static DateMath FromString(string dateMath)
    Parameters
    Type Name Description
    string dateMath
    Returns
    Type Description
    DateMath
    | Edit this page View Source

    ToString()

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

    Operators

    | Edit this page View Source

    implicit operator DateMath(DateTime)

    Declaration
    public static implicit operator DateMath(DateTime dateTime)
    Parameters
    Type Name Description
    DateTime dateTime
    Returns
    Type Description
    DateMath
    | Edit this page View Source

    implicit operator DateMath(string)

    Declaration
    public static implicit operator DateMath(string dateMath)
    Parameters
    Type Name Description
    string dateMath
    Returns
    Type Description
    DateMath

    Implements

    IDateMath

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Fields
      • Anchor
      • Round
    • Properties
      • Now
      • Self
    • Methods
      • Anchored(DateTime)
      • Anchored(string)
      • FromString(string)
      • ToString()
    • Operators
      • implicit operator DateMath(DateTime)
      • implicit operator DateMath(string)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX