IInterval Interface
Represents a relative time duration (hour, 15 minutes, 2 years, etc.).
public interface IInterval : System.IEquatable<HAKOM.TSM.Net.Api.Time.Intervals.IInterval>Implements System.IEquatable<IInterval>
Properties
Section titled “Properties”IInterval.Multiplier Property
Section titled “IInterval.Multiplier Property”Gets how many of the base types durations constitute the duration of the entire interval. i.e. 15 with interval type minute represents a 15 minute interval.
int Multiplier { get; }Property Value
Section titled “Property Value”IInterval.Type Property
Section titled “IInterval.Type Property”Gets the base type of the interval (hour, minute, year, etc.).
HAKOM.TSM.Net.Api.Time.Intervals.IntervalType Type { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”IInterval.TryGetMilliseconds(long) Method
Section titled “IInterval.TryGetMilliseconds(long) Method”Tries to get the interval length in milliseconds. If Type is greater than an hour, it will return false, since other interval types have variable lengths, because of daylight saving time and leap years.
bool TryGetMilliseconds(out long milliseconds);Parameters
Section titled “Parameters”milliseconds System.Int64
The interval length in milliseconds.
Returns
Section titled “Returns”System.Boolean
True if the Type has a fixed length, false otherwise.
Was this page helpful?Thanks for your feedback!