Class Time
Assembly: OpenSearch.Client.dll
Syntax
public class Time : IComparable<Time>, IEquatable<Time>, IUrlParameter
Constructors
|
Edit this page
View Source
Time(double)
Declaration
public Time(double milliseconds)
Parameters
Type |
Name |
Description |
double |
milliseconds |
|
|
Edit this page
View Source
Time(double, TimeUnit)
Declaration
public Time(double factor, TimeUnit interval)
Parameters
|
Edit this page
View Source
Time(string)
Declaration
public Time(string timeUnit)
Parameters
Type |
Name |
Description |
string |
timeUnit |
|
|
Edit this page
View Source
Time(TimeSpan)
Declaration
public Time(TimeSpan timeSpan)
Parameters
Properties
|
Edit this page
View Source
Factor
Declaration
public double? Factor { get; }
Property Value
|
Edit this page
View Source
Interval
Declaration
public TimeUnit? Interval { get; }
Property Value
|
Edit this page
View Source
Milliseconds
Declaration
public double? Milliseconds { get; }
Property Value
|
Edit this page
View Source
MinusOne
Declaration
public static Time MinusOne { get; }
Property Value
|
Edit this page
View Source
Zero
Declaration
public static Time Zero { get; }
Property Value
Methods
|
Edit this page
View Source
CompareTo(Time)
Declaration
public int CompareTo(Time other)
Parameters
Type |
Name |
Description |
Time |
other |
|
Returns
|
Edit this page
View Source
Equals(Time)
Declaration
public bool Equals(Time other)
Parameters
Type |
Name |
Description |
Time |
other |
|
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
|
Edit this page
View Source
ToTimeSpan()
Converts this instance of Time to an instance of TimeSpan.
For values in Microseconds and Nanoseconds, value will be rounded to
the nearest Tick.
All other values will be rounded to the nearest Millisecond.
Declaration
public TimeSpan ToTimeSpan()
Returns
Exceptions
Operators
|
Edit this page
View Source
operator ==(Time, Time)
Declaration
public static bool operator ==(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
|
Edit this page
View Source
operator >(Time, Time)
Declaration
public static bool operator >(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
|
Edit this page
View Source
operator >=(Time, Time)
Declaration
public static bool operator >=(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
|
Edit this page
View Source
implicit operator Time(double)
Declaration
public static implicit operator Time(double milliseconds)
Parameters
Type |
Name |
Description |
double |
milliseconds |
|
Returns
|
Edit this page
View Source
implicit operator Time(string)
Declaration
public static implicit operator Time(string expression)
Parameters
Type |
Name |
Description |
string |
expression |
|
Returns
|
Edit this page
View Source
implicit operator Time(TimeSpan)
Declaration
public static implicit operator Time(TimeSpan span)
Parameters
Returns
|
Edit this page
View Source
operator !=(Time, Time)
Declaration
public static bool operator !=(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
|
Edit this page
View Source
operator <(Time, Time)
Declaration
public static bool operator <(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
|
Edit this page
View Source
operator <=(Time, Time)
Declaration
public static bool operator <=(Time left, Time right)
Parameters
Type |
Name |
Description |
Time |
left |
|
Time |
right |
|
Returns
Implements
Extension Methods