Class DateMathTime
A time representation for use within DateMath expressions.
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
|
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
|
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
|
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
Properties
|
Edit this page
View Source
Factor
Declaration
public int Factor { get; }
Property Value
|
Edit this page
View Source
Interval
Declaration
public DateMathTimeUnit Interval { get; }
Property Value
Methods
|
Edit this page
View Source
CompareTo(DateMathTime)
Declaration
public int CompareTo(DateMathTime other)
Parameters
Returns
|
Edit this page
View Source
Equals(DateMathTime)
Declaration
public bool Equals(DateMathTime other)
Parameters
Returns
|
Edit this page
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
|
Edit this page
View Source
operator ==(DateMathTime, DateMathTime)
Declaration
public static bool operator ==(DateMathTime left, DateMathTime right)
Parameters
Returns
|
Edit this page
View Source
operator >(DateMathTime, DateMathTime)
Declaration
public static bool operator >(DateMathTime left, DateMathTime right)
Parameters
Returns
|
Edit this page
View Source
operator >=(DateMathTime, DateMathTime)
Declaration
public static bool operator >=(DateMathTime left, DateMathTime right)
Parameters
Returns
|
Edit this page
View Source
implicit operator DateMathTime(double)
Declaration
public static implicit operator DateMathTime(double milliseconds)
Parameters
Type |
Name |
Description |
double |
milliseconds |
|
Returns
|
Edit this page
View Source
implicit operator DateMathTime(string)
Declaration
public static implicit operator DateMathTime(string expression)
Parameters
Type |
Name |
Description |
string |
expression |
|
Returns
|
Edit this page
View Source
implicit operator DateMathTime(TimeSpan)
Declaration
public static implicit operator DateMathTime(TimeSpan span)
Parameters
Returns
|
Edit this page
View Source
operator !=(DateMathTime, DateMathTime)
Declaration
public static bool operator !=(DateMathTime left, DateMathTime right)
Parameters
Returns
|
Edit this page
View Source
operator <(DateMathTime, DateMathTime)
Declaration
public static bool operator <(DateMathTime left, DateMathTime right)
Parameters
Returns
|
Edit this page
View Source
operator <=(DateMathTime, DateMathTime)
Declaration
public static bool operator <=(DateMathTime left, DateMathTime right)
Parameters
Returns
Implements
Extension Methods